mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 16:52:41 +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:
parent
a9604c4604
commit
c8c23af840
2 changed files with 12 additions and 5 deletions
|
@ -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:
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue