@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.

Update Feed for handleRequest

Summary: Updated Feed

Test Plan: Visit feed, see feed

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

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

+9 -19
+6 -12
src/applications/feed/controller/PhabricatorFeedDetailController.php
··· 2 2 3 3 final class PhabricatorFeedDetailController extends PhabricatorFeedController { 4 4 5 - private $id; 6 - 7 - public function willProcessRequest(array $data) { 8 - $this->id = $data['id']; 9 - } 10 - 11 - public function processRequest() { 12 - $request = $this->getRequest(); 13 - $user = $request->getUser(); 5 + public function handleRequest(AphrontRequest $request) { 6 + $viewer = $request->getViewer(); 7 + $id = $request->getURIData('id'); 14 8 15 9 $story = id(new PhabricatorFeedQuery()) 16 - ->setViewer($user) 17 - ->withChronologicalKeys(array($this->id)) 10 + ->setViewer($viewer) 11 + ->withChronologicalKeys(array($id)) 18 12 ->executeOne(); 19 13 if (!$story) { 20 14 return new Aphront404Response(); ··· 27 21 28 22 $feed = array($story); 29 23 $builder = new PhabricatorFeedBuilder($feed); 30 - $builder->setUser($user); 24 + $builder->setUser($viewer); 31 25 $feed_view = $builder->buildView(); 32 26 33 27 $title = pht('Story');
+3 -7
src/applications/feed/controller/PhabricatorFeedListController.php
··· 2 2 3 3 final class PhabricatorFeedListController extends PhabricatorFeedController { 4 4 5 - private $queryKey; 6 - 7 5 public function shouldAllowPublic() { 8 6 return true; 9 7 } 10 8 11 - public function willProcessRequest(array $data) { 12 - $this->queryKey = idx($data, 'queryKey'); 13 - } 9 + public function handleRequest(AphrontRequest $request) { 10 + $querykey = $request->getURIData('queryKey'); 14 11 15 - public function processRequest() { 16 12 $controller = id(new PhabricatorApplicationSearchController()) 17 - ->setQueryKey($this->queryKey) 13 + ->setQueryKey($querykey) 18 14 ->setSearchEngine(new PhabricatorFeedSearchEngine()) 19 15 ->setNavigation($this->buildSideNavView()); 20 16