From 184f2ba7a4eb4d4f022695d1a9f4fe06efabdfb2 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 15 Jul 2013 06:19:50 -0700 Subject: [PATCH] Make slowvotes tokeanble Summary: gimmie dem tokens Test Plan: {F50176} Reviewers: btrahan Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D6459 --- .../controller/PhabricatorSlowvotePollController.php | 1 + .../slowvote/storage/PhabricatorSlowvotePoll.php | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/applications/slowvote/controller/PhabricatorSlowvotePollController.php b/src/applications/slowvote/controller/PhabricatorSlowvotePollController.php index 28f5fb21a9..923d9f79d4 100644 --- a/src/applications/slowvote/controller/PhabricatorSlowvotePollController.php +++ b/src/applications/slowvote/controller/PhabricatorSlowvotePollController.php @@ -157,6 +157,7 @@ final class PhabricatorSlowvotePollController 'title' => 'V'.$poll->getID().' '.$poll->getQuestion(), 'device' => true, 'dust' => true, + 'pageObjects' => array($poll->getPHID()), )); } diff --git a/src/applications/slowvote/storage/PhabricatorSlowvotePoll.php b/src/applications/slowvote/storage/PhabricatorSlowvotePoll.php index 0b04b86bc5..4772ea7c5b 100644 --- a/src/applications/slowvote/storage/PhabricatorSlowvotePoll.php +++ b/src/applications/slowvote/storage/PhabricatorSlowvotePoll.php @@ -6,7 +6,8 @@ final class PhabricatorSlowvotePoll extends PhabricatorSlowvoteDAO implements PhabricatorPolicyInterface, - PhabricatorSubscribableInterface { + PhabricatorSubscribableInterface, + PhabricatorTokenReceiverInterface { const RESPONSES_VISIBLE = 0; const RESPONSES_VOTERS = 1; @@ -111,4 +112,12 @@ final class PhabricatorSlowvotePoll extends PhabricatorSlowvoteDAO } +/* -( PhabricatorTokenReceiverInterface )---------------------------------- */ + + + public function getUsersToNotifyOfTokenGiven() { + return array($this->getAuthorPHID()); + } + + }