diff --git a/src/applications/differential/mail/DifferentialCommentMail.php b/src/applications/differential/mail/DifferentialCommentMail.php index bfe6a9cf48..ccf4020b63 100644 --- a/src/applications/differential/mail/DifferentialCommentMail.php +++ b/src/applications/differential/mail/DifferentialCommentMail.php @@ -56,7 +56,10 @@ final class DifferentialCommentMail extends DifferentialMail { break; } - if (strlen(trim($comment->getContent()))) { + $has_comment = strlen(trim($comment->getContent())); + $has_inlines = (bool)$this->getInlineComments(); + + if ($has_comment || $has_inlines) { switch ($action) { case DifferentialAction::ACTION_CLOSE: // Commit comments are auto-generated and not especially interesting, @@ -68,6 +71,10 @@ final class DifferentialCommentMail extends DifferentialMail { } } + if (!$tags) { + $tags[] = MetaMTANotificationType::TYPE_DIFFERENTIAL_OTHER; + } + return $tags; }