Add isExplicitUpload to true on macro uploads
Summary: Fixes T3798. Macros now show up as manually uploaded Test Plan: Upload a macro, go to file, new macro is visiable Reviewers: epriestley Reviewed By: epriestley CC: Korvin, aran Maniphest Tasks: T3798 Differential Revision: https://secure.phabricator.com/D6887
This commit is contained in:
@@ -67,6 +67,7 @@ final class PhabricatorMacroEditController
|
||||
array(
|
||||
'name' => $request->getStr('name'),
|
||||
'authorPHID' => $user->getPHID(),
|
||||
'isExplicitUpload' => true,
|
||||
));
|
||||
} else if ($request->getStr('url')) {
|
||||
try {
|
||||
@@ -75,6 +76,7 @@ final class PhabricatorMacroEditController
|
||||
array(
|
||||
'name' => $request->getStr('name'),
|
||||
'authorPHID' => $user->getPHID(),
|
||||
'isExplicitUpload' => true,
|
||||
));
|
||||
} catch (Exception $ex) {
|
||||
$errors[] = pht('Could not fetch URL: %s', $ex->getMessage());
|
||||
|
||||
Reference in New Issue
Block a user