@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
3final class PhabricatorFavoritesMenuItemController
4 extends PhabricatorFavoritesController {
5
6 public function handleRequest(AphrontRequest $request) {
7 $viewer = $this->getViewer();
8
9 $application = 'PhabricatorFavoritesApplication';
10 $favorites = id(new PhabricatorApplicationQuery())
11 ->setViewer($viewer)
12 ->withClasses(array($application))
13 ->withInstalled(true)
14 ->executeOne();
15
16 $engine = id(new PhabricatorFavoritesProfileMenuEngine())
17 ->setProfileObject($favorites)
18 ->setCustomPHID($viewer->getPHID())
19 ->setController($this);
20
21 return $engine->buildResponse();
22 }
23
24}