Tokens added to Repository Commits and Pastes
Summary: Ref T3023 Test Plan: Tokens visible when awarded to these applications and notifications successful. Reviewers: epriestley, AnhNhan Reviewed By: AnhNhan CC: aran, Korvin, AnhNhan Maniphest Tasks: T3023 Differential Revision: https://secure.phabricator.com/D5859
This commit is contained in:
@@ -120,7 +120,9 @@ final class PhabricatorPasteViewController extends PhabricatorPasteController {
|
||||
array $child_phids) {
|
||||
|
||||
$user = $this->getRequest()->getUser();
|
||||
$properties = new PhabricatorPropertyListView();
|
||||
$properties = id(new PhabricatorPropertyListView())
|
||||
->setUser($user)
|
||||
->setObject($paste);
|
||||
|
||||
$properties->addProperty(
|
||||
pht('Author'),
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
final class PhabricatorPaste extends PhabricatorPasteDAO
|
||||
implements PhabricatorPolicyInterface {
|
||||
implements PhabricatorTokenReceiverInterface, PhabricatorPolicyInterface {
|
||||
|
||||
protected $phid;
|
||||
protected $title;
|
||||
@@ -79,4 +79,12 @@ final class PhabricatorPaste extends PhabricatorPasteDAO
|
||||
return $this;
|
||||
}
|
||||
|
||||
/* -( PhabricatorTokenReceiverInterface )---------------------------------- */
|
||||
|
||||
public function getUsersToNotifyOfTokenGiven() {
|
||||
return array(
|
||||
$this->getAuthorPHID(),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user