1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-30 10:42:41 +01:00

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
This commit is contained in:
epriestley 2015-03-02 07:07:13 -08:00
parent bb6eb9bfcf
commit c99d84793b

View file

@ -462,7 +462,9 @@ class PhabricatorApplicationTransactionView extends AphrontView {
$event->setIsEdited(true); $event->setIsEdited(true);
} }
if (!$has_removed_comment) {
$event->setIsNormalComment(true); $event->setIsNormalComment(true);
}
// If we have a place for quoted text to go and this is a quotable // 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. // comment, pass the quote target ID to the event view.