mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 22:10:55 +01:00
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
This commit is contained in:
parent
e4049e8797
commit
c9835c4492
1 changed files with 12 additions and 1 deletions
|
@ -2096,10 +2096,21 @@ abstract class PhabricatorApplicationTransactionEditor
|
|||
PhabricatorLiskDAO $object,
|
||||
array $xactions) {
|
||||
|
||||
return array(
|
||||
$phids = array(
|
||||
$object->getPHID(),
|
||||
$this->getActingAsPHID(),
|
||||
);
|
||||
|
||||
if ($object instanceof PhabricatorProjectInterface) {
|
||||
$project_phids = PhabricatorEdgeQuery::loadDestinationPHIDs(
|
||||
$object->getPHID(),
|
||||
PhabricatorProjectObjectHasProjectEdgeType::EDGECONST);
|
||||
foreach ($project_phids as $project_phid) {
|
||||
$phids[] = $project_phid;
|
||||
}
|
||||
}
|
||||
|
||||
return $phids;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue