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

Publish stories about objects in projects as related to projects

Summary:
Fixes T5456. We lost this logic in the transition to applicationtransactions.

When publishing a feed story, mark all of the object's projects as related, so the project filter in feed works.

Test Plan: Made a comment on a task associated with a project, saw the story in filtered feed.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: timor, epriestley

Maniphest Tasks: T5456

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

+12 -1
+12 -1
src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
··· 2096 2096 PhabricatorLiskDAO $object, 2097 2097 array $xactions) { 2098 2098 2099 - return array( 2099 + $phids = array( 2100 2100 $object->getPHID(), 2101 2101 $this->getActingAsPHID(), 2102 2102 ); 2103 + 2104 + if ($object instanceof PhabricatorProjectInterface) { 2105 + $project_phids = PhabricatorEdgeQuery::loadDestinationPHIDs( 2106 + $object->getPHID(), 2107 + PhabricatorProjectObjectHasProjectEdgeType::EDGECONST); 2108 + foreach ($project_phids as $project_phid) { 2109 + $phids[] = $project_phid; 2110 + } 2111 + } 2112 + 2113 + return $phids; 2103 2114 } 2104 2115 2105 2116