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

Show project hashtags prominently on project pages

Summary: Currently, it's unreasonably difficult for users to figure out some project hashtags because the rules aren't always intuitive.

Test Plan: {F174508}

Reviewers: chad

Reviewed By: chad

Subscribers: epriestley

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

+11 -1
+11 -1
src/applications/project/controller/PhabricatorProjectProfileController.php
··· 25 25 ->setViewer($user) 26 26 ->needMembers(true) 27 27 ->needWatchers(true) 28 - ->needImages(true); 28 + ->needImages(true) 29 + ->needSlugs(true); 29 30 if ($this->slug) { 30 31 $query->withSlugs(array($this->slug)); 31 32 } else { ··· 279 280 ->setUser($viewer) 280 281 ->setObject($project) 281 282 ->setActionList($actions); 283 + 284 + $hashtags = array(); 285 + foreach ($project->getSlugs() as $slug) { 286 + $hashtags[] = id(new PHUITagView()) 287 + ->setType(PHUITagView::TYPE_OBJECT) 288 + ->setName('#'.$slug->getSlug()); 289 + } 290 + 291 + $view->addProperty(pht('Hashtags'), phutil_implode_html(' ', $hashtags)); 282 292 283 293 $view->addProperty( 284 294 pht('Members'),