Differential D12026 Diff 28957 src/applications/transactions/controller/PhabricatorApplicationTransactionCommentHistoryController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/controller/PhabricatorApplicationTransactionCommentHistoryController.php
| Show All 30 Lines | if (!$xaction->getComment()) { | ||||
| return new Aphront404Response(); | return new Aphront404Response(); | ||||
| } | } | ||||
| if ($xaction->getComment()->getIsRemoved()) { | if ($xaction->getComment()->getIsRemoved()) { | ||||
| // You can't view history of a transaction with a removed comment. | // You can't view history of a transaction with a removed comment. | ||||
| return new Aphront400Response(); | return new Aphront400Response(); | ||||
| } | } | ||||
| $comments = id(new PhabricatorApplicationTransactionCommentQuery()) | $comments = id(new PhabricatorApplicationTransactionTemplatedCommentQuery()) | ||||
| ->setViewer($user) | ->setViewer($user) | ||||
| ->setTemplate($xaction->getApplicationTransactionCommentObject()) | ->setTemplate($xaction->getApplicationTransactionCommentObject()) | ||||
| ->withTransactionPHIDs(array($xaction->getPHID())) | ->withTransactionPHIDs(array($xaction->getPHID())) | ||||
| ->execute(); | ->execute(); | ||||
| if (!$comments) { | if (!$comments) { | ||||
| return new Aphront404Response(); | return new Aphront404Response(); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines | |||||