Use setContentSourceFromRequest() in more places
Summary: I introduced this helper at some point, clean up all the code duplication around content sources. Test Plan: Grepped; hit edit interfaces for most/all of these. Reviewers: btrahan, chad, edward Reviewed By: chad CC: aran Differential Revision: https://secure.phabricator.com/D6030
This commit is contained in:
@@ -40,12 +40,7 @@ final class PhabricatorMacroCommentController
|
||||
$editor = id(new PhabricatorMacroEditor())
|
||||
->setActor($user)
|
||||
->setContinueOnNoEffect($request->isContinueRequest())
|
||||
->setContentSource(
|
||||
PhabricatorContentSource::newForSource(
|
||||
PhabricatorContentSource::SOURCE_WEB,
|
||||
array(
|
||||
'ip' => $request->getRemoteAddr(),
|
||||
)))
|
||||
->setContentSourceFromRequest($request)
|
||||
->setIsPreview($is_preview);
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user