@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
2
fork

Configure Feed

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

Add a Spaces remarkup rule

Summary: Ref T8449.

Test Plan: {F474032}

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T8449

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

+26
+2
src/__phutil_library_map__.php
··· 2586 2586 'PhabricatorSpacesNamespaceSearchEngine' => 'applications/spaces/query/PhabricatorSpacesNamespaceSearchEngine.php', 2587 2587 'PhabricatorSpacesNamespaceTransaction' => 'applications/spaces/storage/PhabricatorSpacesNamespaceTransaction.php', 2588 2588 'PhabricatorSpacesNamespaceTransactionQuery' => 'applications/spaces/query/PhabricatorSpacesNamespaceTransactionQuery.php', 2589 + 'PhabricatorSpacesRemarkupRule' => 'applications/spaces/remarkup/PhabricatorSpacesRemarkupRule.php', 2589 2590 'PhabricatorSpacesTestCase' => 'applications/spaces/__tests__/PhabricatorSpacesTestCase.php', 2590 2591 'PhabricatorSpacesViewController' => 'applications/spaces/controller/PhabricatorSpacesViewController.php', 2591 2592 'PhabricatorStandardCustomField' => 'infrastructure/customfield/standard/PhabricatorStandardCustomField.php', ··· 6093 6094 'PhabricatorSpacesNamespaceSearchEngine' => 'PhabricatorApplicationSearchEngine', 6094 6095 'PhabricatorSpacesNamespaceTransaction' => 'PhabricatorApplicationTransaction', 6095 6096 'PhabricatorSpacesNamespaceTransactionQuery' => 'PhabricatorApplicationTransactionQuery', 6097 + 'PhabricatorSpacesRemarkupRule' => 'PhabricatorObjectRemarkupRule', 6096 6098 'PhabricatorSpacesTestCase' => 'PhabricatorTestCase', 6097 6099 'PhabricatorSpacesViewController' => 'PhabricatorSpacesController', 6098 6100 'PhabricatorStandardCustomField' => 'PhabricatorCustomField',
+6
src/applications/spaces/application/PhabricatorSpacesApplication.php
··· 38 38 return true; 39 39 } 40 40 41 + public function getRemarkupRules() { 42 + return array( 43 + new PhabricatorSpacesRemarkupRule(), 44 + ); 45 + } 46 + 41 47 public function getRoutes() { 42 48 return array( 43 49 '/S(?P<id>[1-9]\d*)' => 'PhabricatorSpacesViewController',
+18
src/applications/spaces/remarkup/PhabricatorSpacesRemarkupRule.php
··· 1 + <?php 2 + 3 + final class PhabricatorSpacesRemarkupRule 4 + extends PhabricatorObjectRemarkupRule { 5 + 6 + protected function getObjectNamePrefix() { 7 + return 'S'; 8 + } 9 + 10 + protected function loadObjects(array $ids) { 11 + $viewer = $this->getEngine()->getConfig('viewer'); 12 + return id(new PhabricatorSpacesNamespaceQuery()) 13 + ->setViewer($viewer) 14 + ->withIDs($ids) 15 + ->execute(); 16 + } 17 + 18 + }