1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-19 05:12:41 +01:00

CalendarEvent implements PhabricatorTokenReceiverInterface

Summary: Closes T7946, CalenderEvent implement PhabricatorTokenReceiverInterface.

Test Plan: Create or open a calendar event, award a token, rescind the token, see the full timeline under the event details, open Feed, only token award action should have surfaced.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T7946

Differential Revision: https://secure.phabricator.com/D12600
This commit is contained in:
lkassianik 2015-04-28 15:02:42 -07:00
parent 00f864b359
commit 15310bbcdf

View file

@ -4,7 +4,8 @@ final class PhabricatorCalendarEvent extends PhabricatorCalendarDAO
implements PhabricatorPolicyInterface,
PhabricatorMarkupInterface,
PhabricatorApplicationTransactionInterface,
PhabricatorSubscribableInterface {
PhabricatorSubscribableInterface,
PhabricatorTokenReceiverInterface {
protected $name;
protected $userPHID;
@ -234,4 +235,11 @@ final class PhabricatorCalendarEvent extends PhabricatorCalendarDAO
public function shouldAllowSubscription($phid) {
return true;
}
/* -( PhabricatorTokenReceiverInterface )---------------------------------- */
public function getUsersToNotifyOfTokenGiven() {
return array($this->getUserPHID());
}
}