@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+9 -1
+9 -1
src/applications/calendar/storage/PhabricatorCalendarEvent.php
··· 4 4 implements PhabricatorPolicyInterface, 5 5 PhabricatorMarkupInterface, 6 6 PhabricatorApplicationTransactionInterface, 7 - PhabricatorSubscribableInterface { 7 + PhabricatorSubscribableInterface, 8 + PhabricatorTokenReceiverInterface { 8 9 9 10 protected $name; 10 11 protected $userPHID; ··· 233 234 234 235 public function shouldAllowSubscription($phid) { 235 236 return true; 237 + } 238 + 239 + /* -( PhabricatorTokenReceiverInterface )---------------------------------- */ 240 + 241 + 242 + public function getUsersToNotifyOfTokenGiven() { 243 + return array($this->getUserPHID()); 236 244 } 237 245 }