@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 recaptime-dev/main 35 lines 796 B view raw
1<?php 2 3final class PhabricatorSpacesMailEngineExtension 4 extends PhabricatorMailEngineExtension { 5 6 const EXTENSIONKEY = 'spaces'; 7 8 public function supportsObject($object) { 9 return ($object instanceof PhabricatorSpacesInterface); 10 } 11 12 public function newMailStampTemplates($object) { 13 return array( 14 id(new PhabricatorPHIDMailStamp()) 15 ->setKey('space') 16 ->setLabel(pht('Space')), 17 ); 18 } 19 20 public function newMailStamps($object, array $xactions) { 21 $editor = $this->getEditor(); 22 $viewer = $this->getViewer(); 23 24 if (!PhabricatorSpacesNamespaceQuery::getSpacesExist()) { 25 return; 26 } 27 28 $space_phid = PhabricatorSpacesNamespaceQuery::getObjectSpacePHID( 29 $object); 30 31 $this->getMailStamp('space') 32 ->setValue($space_phid); 33 } 34 35}