Differential D11143 Diff 27052 src/applications/notification/controller/PhabricatorNotificationIndividualController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/notification/controller/PhabricatorNotificationIndividualController.php
<?php | <?php | ||||
final class PhabricatorNotificationIndividualController | final class PhabricatorNotificationIndividualController | ||||
extends PhabricatorNotificationController { | extends PhabricatorNotificationController { | ||||
public function processRequest() { | public function processRequest() { | ||||
$request = $this->getRequest(); | $request = $this->getRequest(); | ||||
$user = $request->getUser(); | $user = $request->getUser(); | ||||
$stories = id(new PhabricatorNotificationQuery()) | $stories = id(new PhabricatorNotificationQuery()) | ||||
->setViewer($user) | ->setViewer($user) | ||||
->withUserPHIDs(array($user->getPHID())) | |||||
->withKeys(array($request->getStr('key'))) | ->withKeys(array($request->getStr('key'))) | ||||
epriestley: Actually, I think this violates policies and I need to revert it and move it to another diff. | |||||
->execute(); | ->execute(); | ||||
if (!$stories) { | if (!$stories) { | ||||
return id(new AphrontAjaxResponse())->setContent( | return id(new AphrontAjaxResponse())->setContent( | ||||
array( | array( | ||||
'pertinent' => false, | 'pertinent' => false, | ||||
)); | )); | ||||
} | } | ||||
Show All 13 Lines |
Actually, I think this violates policies and I need to revert it and move it to another diff. I'll get this out of here.