Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14394847
D13430.id32517.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D13430.id32517.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D13430: Fix a possible undefined variable
Attached
Detach File
Event Timeline
Log In to Comment