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

Add tokens to Macro

Summary: A foolish consistency is the hobgoblin of little minds, adored by little statesmen and philosophers and divines.

Test Plan: Award a token to a macro.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D13725
This commit is contained in:
Chad Little 2015-07-27 07:51:37 -07:00
parent 7fa4e455b6
commit bccdbacf44
2 changed files with 12 additions and 0 deletions

View file

@ -5924,6 +5924,7 @@ phutil_register_library_map(array(
'PhabricatorSubscribableInterface', 'PhabricatorSubscribableInterface',
'PhabricatorApplicationTransactionInterface', 'PhabricatorApplicationTransactionInterface',
'PhabricatorFlaggableInterface', 'PhabricatorFlaggableInterface',
'PhabricatorTokenReceiverInterface',
'PhabricatorPolicyInterface', 'PhabricatorPolicyInterface',
), ),
'PhabricatorFileImageTransform' => 'PhabricatorFileTransform', 'PhabricatorFileImageTransform' => 'PhabricatorFileTransform',

View file

@ -5,6 +5,7 @@ final class PhabricatorFileImageMacro extends PhabricatorFileDAO
PhabricatorSubscribableInterface, PhabricatorSubscribableInterface,
PhabricatorApplicationTransactionInterface, PhabricatorApplicationTransactionInterface,
PhabricatorFlaggableInterface, PhabricatorFlaggableInterface,
PhabricatorTokenReceiverInterface,
PhabricatorPolicyInterface { PhabricatorPolicyInterface {
protected $authorPHID; protected $authorPHID;
@ -119,6 +120,16 @@ final class PhabricatorFileImageMacro extends PhabricatorFileDAO
} }
/* -( PhabricatorTokenRecevierInterface )---------------------------------- */
public function getUsersToNotifyOfTokenGiven() {
return array(
$this->getAuthorPHID(),
);
}
/* -( PhabricatorPolicyInterface )----------------------------------------- */ /* -( PhabricatorPolicyInterface )----------------------------------------- */