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

at upstream/main 42 lines 1.1 kB view raw
1<?php 2 3final class PhabricatorHomeMenuItemController 4 extends PhabricatorHomeController { 5 6 public function shouldAllowPublic() { 7 return true; 8 } 9 10 public function isGlobalDragAndDropUploadEnabled() { 11 return true; 12 } 13 14 public function handleRequest(AphrontRequest $request) { 15 $viewer = $this->getViewer(); 16 17 // Test if we should show mobile users the menu or the page content: 18 // if you visit "/", you just get the menu. If you visit "/home/", you 19 // get the content. 20 $is_content = $request->getURIData('content'); 21 22 $application = 'PhabricatorHomeApplication'; 23 $home_app = id(new PhabricatorApplicationQuery()) 24 ->setViewer($viewer) 25 ->withClasses(array($application)) 26 ->withInstalled(true) 27 ->executeOne(); 28 29 $engine = id(new PhabricatorHomeProfileMenuEngine()) 30 ->setProfileObject($home_app) 31 ->setCustomPHID($viewer->getPHID()) 32 ->setController($this) 33 ->setShowContentCrumbs(false); 34 35 if (!$is_content) { 36 $engine->addContentPageClass('phabricator-home'); 37 } 38 39 return $engine->buildResponse(); 40 } 41 42}