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

Enable Feed stories for Fund

Summary: Not sure when these stopped, also fixed mailtag contants.

Test Plan: Close an initiative, see story, fund initiative, see story.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

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

+12 -5
+9 -3
src/applications/fund/storage/FundInitiativeTransaction.php
··· 26 26 return 'FundInitiativeTransactionType'; 27 27 } 28 28 29 + protected function shouldPublishFeedStory( 30 + PhabricatorLiskDAO $object, 31 + array $xactions) { 32 + return true; 33 + } 34 + 29 35 public function getMailTags() { 30 36 $tags = parent::getMailTags(); 31 37 32 38 switch ($this->getTransactionType()) { 33 - case self::TYPE_STATUS: 39 + case FundInitiativeStatusTransaction::TRANSACTIONTYPE: 34 40 $tags[] = self::MAILTAG_STATUS; 35 41 break; 36 - case self::TYPE_BACKER: 37 - case self::TYPE_REFUND: 42 + case FundInitiativeBackerTransaction::TRANSACTIONTYPE: 43 + case FundInitiativeRefundTransaction::TRANSACTIONTYPE: 38 44 $tags[] = self::MAILTAG_BACKER; 39 45 break; 40 46 default:
+3 -2
src/applications/fund/xaction/FundInitiativeBackerTransaction.php
··· 57 57 FundInitiativeTransaction::PROPERTY_AMOUNT); 58 58 $amount = PhortuneCurrency::newFromString($amount); 59 59 return pht( 60 - '%s backed %s.', 60 + '%s backed %s with %s.', 61 61 $this->renderAuthor(), 62 - $this->renderObject()); 62 + $this->renderObject(), 63 + $amount->formatForDisplay()); 63 64 } 64 65 65 66 public function getIcon() {