@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 the API results for File objects

Summary: Ref T13528. This supports "arc upload --browse ...".

Test Plan: Called "file.search", saw URIs in results.

Maniphest Tasks: T13528

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

+6 -1
+6 -1
src/applications/files/storage/PhabricatorFile.php
··· 1656 1656 ->setType('string') 1657 1657 ->setDescription(pht('The name of the file.')), 1658 1658 id(new PhabricatorConduitSearchFieldSpecification()) 1659 + ->setKey('uri') 1660 + ->setType('uri') 1661 + ->setDescription(pht('View URI for the file.')), 1662 + id(new PhabricatorConduitSearchFieldSpecification()) 1659 1663 ->setKey('dataURI') 1660 - ->setType('string') 1664 + ->setType('uri') 1661 1665 ->setDescription(pht('Download URI for the file data.')), 1662 1666 id(new PhabricatorConduitSearchFieldSpecification()) 1663 1667 ->setKey('size') ··· 1669 1673 public function getFieldValuesForConduit() { 1670 1674 return array( 1671 1675 'name' => $this->getName(), 1676 + 'uri' => PhabricatorEnv::getURI($this->getURI()), 1672 1677 'dataURI' => $this->getCDNURI('data'), 1673 1678 'size' => (int)$this->getByteSize(), 1674 1679 );