mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 14:00:56 +01:00
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:
parent
0ae7335316
commit
fc82e81fe2
1 changed files with 2 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue