diff --git a/src/applications/transactions/view/PhabricatorApplicationTransactionView.php b/src/applications/transactions/view/PhabricatorApplicationTransactionView.php index 64d9cd4c11..524b476520 100644 --- a/src/applications/transactions/view/PhabricatorApplicationTransactionView.php +++ b/src/applications/transactions/view/PhabricatorApplicationTransactionView.php @@ -382,13 +382,22 @@ class PhabricatorApplicationTransactionView extends AphrontView { ->setAnchor($anchor); } - $has_deleted_comment = $xaction->getComment() && - $xaction->getComment()->getIsDeleted(); + $transaction_type = $xaction->getTransactionType(); + $comment_type = PhabricatorTransactions::TYPE_COMMENT; + $is_normal_comment = ($transaction_type == $comment_type); - $has_removed_comment = $xaction->getComment() && - $xaction->getComment()->getIsRemoved(); + if ($this->getShowEditActions() && + !$this->isPreview && + $is_normal_comment) { + + $has_deleted_comment = + $xaction->getComment() && + $xaction->getComment()->getIsDeleted(); + + $has_removed_comment = + $xaction->getComment() && + $xaction->getComment()->getIsRemoved(); - if ($this->getShowEditActions() && !$this->isPreview) { if ($xaction->getCommentVersion() > 1 && !$has_removed_comment) { $event->setIsEdited(true); }