mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 12:00:55 +01:00
Add URI to paste.info's response.
Summary: Might be useful to include a $paste['uri'] in the response. Specifically for Pxxx responses in phabot. Test Plan: Local Conduit web console. Reviewers: epriestley CC: Differential Revision: 552
This commit is contained in:
parent
cab33c550e
commit
63980af010
2 changed files with 2 additions and 0 deletions
|
@ -52,6 +52,7 @@ class ConduitAPI_paste_info_Method extends ConduitAPIMethod {
|
|||
'filePHID' => $paste->getFilePHID(),
|
||||
'title' => $paste->getTitle(),
|
||||
'dateCreated' => $paste->getDateCreated(),
|
||||
'uri' => PhabricatorEnv::getProductionURI('/P'.$paste->getID()),
|
||||
);
|
||||
|
||||
return $result;
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
phutil_require_module('phabricator', 'applications/conduit/method/base');
|
||||
phutil_require_module('phabricator', 'applications/conduit/protocol/exception');
|
||||
phutil_require_module('phabricator', 'applications/paste/storage/paste');
|
||||
phutil_require_module('phabricator', 'infrastructure/env');
|
||||
|
||||
phutil_require_module('phutil', 'utils');
|
||||
|
||||
|
|
Loading…
Reference in a new issue