From 15310bbcdf4851f4dd09c0733dbf459fbcb39da2 Mon Sep 17 00:00:00 2001 From: lkassianik Date: Tue, 28 Apr 2015 15:02:42 -0700 Subject: [PATCH] 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 --- .../calendar/storage/PhabricatorCalendarEvent.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/applications/calendar/storage/PhabricatorCalendarEvent.php b/src/applications/calendar/storage/PhabricatorCalendarEvent.php index cb44fdbb22..6484358d8a 100644 --- a/src/applications/calendar/storage/PhabricatorCalendarEvent.php +++ b/src/applications/calendar/storage/PhabricatorCalendarEvent.php @@ -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()); + } }