diff --git a/src/applications/differential/storage/DifferentialRevision.php b/src/applications/differential/storage/DifferentialRevision.php index 960b405060..23825e0cb3 100644 --- a/src/applications/differential/storage/DifferentialRevision.php +++ b/src/applications/differential/storage/DifferentialRevision.php @@ -1052,6 +1052,10 @@ final class DifferentialRevision extends DifferentialDAO ->setKey('title') ->setType('string') ->setDescription(pht('The revision title.')), + id(new PhabricatorConduitSearchFieldSpecification()) + ->setKey('uri') + ->setType('uri') + ->setDescription(pht('View URI for the revision.')), id(new PhabricatorConduitSearchFieldSpecification()) ->setKey('authorPHID') ->setType('phid') diff --git a/src/applications/paste/storage/PhabricatorPaste.php b/src/applications/paste/storage/PhabricatorPaste.php index 79f1a953f6..971ec63f86 100644 --- a/src/applications/paste/storage/PhabricatorPaste.php +++ b/src/applications/paste/storage/PhabricatorPaste.php @@ -241,6 +241,10 @@ final class PhabricatorPaste extends PhabricatorPasteDAO ->setKey('title') ->setType('string') ->setDescription(pht('The title of the paste.')), + id(new PhabricatorConduitSearchFieldSpecification()) + ->setKey('uri') + ->setType('uri') + ->setDescription(pht('View URI for the paste.')), id(new PhabricatorConduitSearchFieldSpecification()) ->setKey('authorPHID') ->setType('phid') @@ -259,6 +263,7 @@ final class PhabricatorPaste extends PhabricatorPasteDAO public function getFieldValuesForConduit() { return array( 'title' => $this->getTitle(), + 'uri' => PhabricatorEnv::getURI($this->getURI()), 'authorPHID' => $this->getAuthorPHID(), 'language' => nonempty($this->getLanguage(), null), 'status' => $this->getStatus(),