@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add "uri" to "paste.search" API output

Summary: Ref T13490. This simplifies some client behavior in the general case.

Test Plan: Called API method, saw URIs.

Maniphest Tasks: T13490

Differential Revision: https://secure.phabricator.com/D21105

+9
+4
src/applications/differential/storage/DifferentialRevision.php
··· 1053 1053 ->setType('string') 1054 1054 ->setDescription(pht('The revision title.')), 1055 1055 id(new PhabricatorConduitSearchFieldSpecification()) 1056 + ->setKey('uri') 1057 + ->setType('uri') 1058 + ->setDescription(pht('View URI for the revision.')), 1059 + id(new PhabricatorConduitSearchFieldSpecification()) 1056 1060 ->setKey('authorPHID') 1057 1061 ->setType('phid') 1058 1062 ->setDescription(pht('Revision author PHID.')),
+5
src/applications/paste/storage/PhabricatorPaste.php
··· 242 242 ->setType('string') 243 243 ->setDescription(pht('The title of the paste.')), 244 244 id(new PhabricatorConduitSearchFieldSpecification()) 245 + ->setKey('uri') 246 + ->setType('uri') 247 + ->setDescription(pht('View URI for the paste.')), 248 + id(new PhabricatorConduitSearchFieldSpecification()) 245 249 ->setKey('authorPHID') 246 250 ->setType('phid') 247 251 ->setDescription(pht('User PHID of the author.')), ··· 259 263 public function getFieldValuesForConduit() { 260 264 return array( 261 265 'title' => $this->getTitle(), 266 + 'uri' => PhabricatorEnv::getURI($this->getURI()), 262 267 'authorPHID' => $this->getAuthorPHID(), 263 268 'language' => nonempty($this->getLanguage(), null), 264 269 'status' => $this->getStatus(),