Fix an exception in Ponder comment saving.
Summary: Add a `setViewer()` so that PHID loading doesn't throw. Also remove a period from a button because none of the others have one. Test Plan: Saved a comment successfully. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4202
This commit is contained in:
@@ -18,6 +18,7 @@ final class PonderCommentSaveController extends PonderController {
|
||||
|
||||
$target = $request->getStr('target');
|
||||
$objects = id(new PhabricatorObjectHandleData(array($target)))
|
||||
->setViewer($user)
|
||||
->loadHandles();
|
||||
if (!$objects) {
|
||||
return new Aphront404Response();
|
||||
|
||||
Reference in New Issue
Block a user