1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-28 00:10:57 +01:00

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
This commit is contained in:
Chad Little 2017-05-05 11:12:26 -07:00
parent a9604c4604
commit c8c23af840
2 changed files with 12 additions and 5 deletions

View file

@ -26,15 +26,21 @@ final class FundInitiativeTransaction
return 'FundInitiativeTransactionType';
}
protected function shouldPublishFeedStory(
PhabricatorLiskDAO $object,
array $xactions) {
return true;
}
public function getMailTags() {
$tags = parent::getMailTags();
switch ($this->getTransactionType()) {
case self::TYPE_STATUS:
case FundInitiativeStatusTransaction::TRANSACTIONTYPE:
$tags[] = self::MAILTAG_STATUS;
break;
case self::TYPE_BACKER:
case self::TYPE_REFUND:
case FundInitiativeBackerTransaction::TRANSACTIONTYPE:
case FundInitiativeRefundTransaction::TRANSACTIONTYPE:
$tags[] = self::MAILTAG_BACKER;
break;
default:

View file

@ -57,9 +57,10 @@ final class FundInitiativeBackerTransaction
FundInitiativeTransaction::PROPERTY_AMOUNT);
$amount = PhortuneCurrency::newFromString($amount);
return pht(
'%s backed %s.',
'%s backed %s with %s.',
$this->renderAuthor(),
$this->renderObject());
$this->renderObject(),
$amount->formatForDisplay());
}
public function getIcon() {