1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-10 14:51:06 +01:00

Make slowvotes tokeanble

Summary: gimmie dem tokens

Test Plan: {F50176}

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Differential Revision: https://secure.phabricator.com/D6459
This commit is contained in:
epriestley 2013-07-15 06:19:50 -07:00
parent a65e3812cb
commit 184f2ba7a4
2 changed files with 11 additions and 1 deletions

View file

@ -157,6 +157,7 @@ final class PhabricatorSlowvotePollController
'title' => 'V'.$poll->getID().' '.$poll->getQuestion(),
'device' => true,
'dust' => true,
'pageObjects' => array($poll->getPHID()),
));
}

View file

@ -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());
}
}