Loading Controllers/api/v1/comments.php +10 −3 Original line number Diff line number Diff line Loading @@ -347,7 +347,14 @@ class comments implements Interfaces\Api $comment = $manager->getByLuid($pages[0]); if ($comment && $comment->canEdit()) { if (!$comment) { return Factory::response([ 'status' => 'error', 'message' => 'Comment not found', ]); } if ($comment->canEdit()) { $manager->delete($comment); return Factory::response([]); } Loading Loading
Controllers/api/v1/comments.php +10 −3 Original line number Diff line number Diff line Loading @@ -347,7 +347,14 @@ class comments implements Interfaces\Api $comment = $manager->getByLuid($pages[0]); if ($comment && $comment->canEdit()) { if (!$comment) { return Factory::response([ 'status' => 'error', 'message' => 'Comment not found', ]); } if ($comment->canEdit()) { $manager->delete($comment); return Factory::response([]); } Loading