@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<?php
2
3abstract class PhrequentController extends PhabricatorController {
4
5 protected function buildSideNavView() {
6 $user = $this->getRequest()->getUser();
7
8 $nav = new AphrontSideNavFilterView();
9 $nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
10
11 id(new PhrequentSearchEngine())
12 ->setViewer($user)
13 ->addNavigationItems($nav->getMenu());
14
15 $nav->selectFilter(null);
16
17 return $nav;
18 }
19}