mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-10 23:01:04 +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:
parent
a65e3812cb
commit
184f2ba7a4
2 changed files with 11 additions and 1 deletions
|
@ -157,6 +157,7 @@ final class PhabricatorSlowvotePollController
|
||||||
'title' => 'V'.$poll->getID().' '.$poll->getQuestion(),
|
'title' => 'V'.$poll->getID().' '.$poll->getQuestion(),
|
||||||
'device' => true,
|
'device' => true,
|
||||||
'dust' => true,
|
'dust' => true,
|
||||||
|
'pageObjects' => array($poll->getPHID()),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,8 @@
|
||||||
final class PhabricatorSlowvotePoll extends PhabricatorSlowvoteDAO
|
final class PhabricatorSlowvotePoll extends PhabricatorSlowvoteDAO
|
||||||
implements
|
implements
|
||||||
PhabricatorPolicyInterface,
|
PhabricatorPolicyInterface,
|
||||||
PhabricatorSubscribableInterface {
|
PhabricatorSubscribableInterface,
|
||||||
|
PhabricatorTokenReceiverInterface {
|
||||||
|
|
||||||
const RESPONSES_VISIBLE = 0;
|
const RESPONSES_VISIBLE = 0;
|
||||||
const RESPONSES_VOTERS = 1;
|
const RESPONSES_VOTERS = 1;
|
||||||
|
@ -111,4 +112,12 @@ final class PhabricatorSlowvotePoll extends PhabricatorSlowvoteDAO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* -( PhabricatorTokenReceiverInterface )---------------------------------- */
|
||||||
|
|
||||||
|
|
||||||
|
public function getUsersToNotifyOfTokenGiven() {
|
||||||
|
return array($this->getAuthorPHID());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue