From b7e8c0a300b0f8faef8cba3cad232b82253cf8d0 Mon Sep 17 00:00:00 2001 From: vrana Date: Mon, 26 Nov 2012 15:19:52 -0800 Subject: [PATCH] Specify content source for differential.close Test Plan: $ arc close-revision 1 Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4041 --- .../differential/ConduitAPI_differential_close_Method.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/applications/conduit/method/differential/ConduitAPI_differential_close_Method.php b/src/applications/conduit/method/differential/ConduitAPI_differential_close_Method.php index 688f5b5f4c..f7bbe40d5f 100644 --- a/src/applications/conduit/method/differential/ConduitAPI_differential_close_Method.php +++ b/src/applications/conduit/method/differential/ConduitAPI_differential_close_Method.php @@ -45,9 +45,14 @@ final class ConduitAPI_differential_close_Method $revision->loadRelationships(); + $content_source = PhabricatorContentSource::newForSource( + PhabricatorContentSource::SOURCE_CONDUIT, + array()); + $editor = new DifferentialCommentEditor( $revision, DifferentialAction::ACTION_CLOSE); + $editor->setContentSource($content_source); $editor->setActor($request->getUser()); $editor->save();