Page MenuHomePhabricator

D9180.id21803.diff
No OneTemporary

D9180.id21803.diff

diff --git a/src/applications/transactions/view/PhabricatorApplicationTransactionView.php b/src/applications/transactions/view/PhabricatorApplicationTransactionView.php
--- a/src/applications/transactions/view/PhabricatorApplicationTransactionView.php
+++ b/src/applications/transactions/view/PhabricatorApplicationTransactionView.php
@@ -382,13 +382,22 @@
->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);
}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 11, 5:32 PM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6723287
Default Alt Text
D9180.id21803.diff (1 KB)

Event Timeline