1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 14:52:41 +01:00

Add "uri" to the fields returned by "differential.revision.search"

Summary: Ref T13490. This simplifies mostly-theoretical cases where you're accessing Phabricator via arc-over-ssh and the Conduit protocol + domain may differ from the production protocol + domain.

Test Plan: Called API via web UI, saw sensible URI values in results.

Maniphest Tasks: T13490

Differential Revision: https://secure.phabricator.com/D21102
This commit is contained in:
epriestley 2020-04-13 05:19:22 -07:00
parent c3be82fe6e
commit 5597f4e6f2

View file

@ -1104,6 +1104,7 @@ final class DifferentialRevision extends DifferentialDAO
return array(
'title' => $this->getTitle(),
'uri' => PhabricatorEnv::getURI($this->getURI()),
'authorPHID' => $this->getAuthorPHID(),
'status' => $status_info,
'repositoryPHID' => $this->getRepositoryPHID(),