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:
deedydas
2013-05-09 14:21:21 -07:00
committed by epriestley
parent 961c2c0108
commit 78a8079f59
4 changed files with 26 additions and 5 deletions

View File

@@ -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'),

View File

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