@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 31 lines 691 B view raw
1<?php 2 3final class PhabricatorProjectsWatchersSearchEngineAttachment 4 extends PhabricatorSearchEngineAttachment { 5 6 public function getAttachmentName() { 7 return pht('Project Watchers'); 8 } 9 10 public function getAttachmentDescription() { 11 return pht('Get the watcher list for the project.'); 12 } 13 14 public function willLoadAttachmentData($query, $spec) { 15 $query->needWatchers(true); 16 } 17 18 public function getAttachmentForObject($object, $data, $spec) { 19 $watchers = array(); 20 foreach ($object->getWatcherPHIDs() as $watcher_phid) { 21 $watchers[] = array( 22 'phid' => $watcher_phid, 23 ); 24 } 25 26 return array( 27 'watchers' => $watchers, 28 ); 29 } 30 31}