Page MenuHomePhabricator

D13430.id32517.diff
No OneTemporary

D13430.id32517.diff

diff --git a/src/applications/subscriptions/controller/PhabricatorSubscriptionsListController.php b/src/applications/subscriptions/controller/PhabricatorSubscriptionsListController.php
--- a/src/applications/subscriptions/controller/PhabricatorSubscriptionsListController.php
+++ b/src/applications/subscriptions/controller/PhabricatorSubscriptionsListController.php
@@ -3,33 +3,27 @@
final class PhabricatorSubscriptionsListController
extends PhabricatorController {
- private $phid;
-
- public function willProcessRequest(array $data) {
- $this->phid = idx($data, 'phid');
- }
-
public function shouldAllowPublic() {
return true;
}
- public function processRequest() {
- $request = $this->getRequest();
-
+ public function handleRequest(AphrontRequest $request) {
$viewer = $request->getUser();
- $phid = $this->phid;
-
$object = id(new PhabricatorObjectQuery())
->setViewer($viewer)
- ->withPHIDs(array($phid))
+ ->withPHIDs(array($request->getURIData('phid')))
->executeOne();
+ if (!$object) {
+ return new Aphront404Response();
+ }
- if ($object instanceof PhabricatorSubscribableInterface) {
- $subscriber_phids = PhabricatorSubscribersQuery::loadSubscribersForPHID(
- $phid);
+ if (!$object instanceof PhabricatorSubscribableInterface) {
+ return new Aphront404Response();
}
- $handle_phids = $subscriber_phids;
+ $phid = $object->getPHID();
+
+ $handle_phids = PhabricatorSubscribersQuery::loadSubscribersForPHID($phid);
$handle_phids[] = $phid;
$handles = id(new PhabricatorHandleQuery())

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 2:35 AM (18 h, 47 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6920307
Default Alt Text
D13430.id32517.diff (1 KB)

Event Timeline