From c99d84793b3fed9a3aeb0b5b231e66f57a4c23eb Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 2 Mar 2015 07:07:13 -0800 Subject: [PATCH] Don't show "View Raw" for removed comments Summary: Fixes T7232. Test Plan: Saw "View Raw" gone for removed comment, still present and functional for non-removed comment. Reviewers: btrahan, chad Reviewed By: chad Subscribers: epriestley Maniphest Tasks: T7232 Differential Revision: https://secure.phabricator.com/D11926 --- .../view/PhabricatorApplicationTransactionView.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/applications/transactions/view/PhabricatorApplicationTransactionView.php b/src/applications/transactions/view/PhabricatorApplicationTransactionView.php index 12e4897dbf..2a8575e3c3 100644 --- a/src/applications/transactions/view/PhabricatorApplicationTransactionView.php +++ b/src/applications/transactions/view/PhabricatorApplicationTransactionView.php @@ -462,7 +462,9 @@ class PhabricatorApplicationTransactionView extends AphrontView { $event->setIsEdited(true); } - $event->setIsNormalComment(true); + if (!$has_removed_comment) { + $event->setIsNormalComment(true); + } // If we have a place for quoted text to go and this is a quotable // comment, pass the quote target ID to the event view.