Page MenuHomePhabricator

D9180.id.diff
No OneTemporary

D9180.id.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
Oct 19 2024, 2:15 AM (4 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6723287
Default Alt Text
D9180.id.diff (1 KB)

Event Timeline