From: Tim Düsterhus Date: Sat, 18 Jun 2016 13:55:34 +0000 (+0200) Subject: Reference the message-id of parent comment's email notification for responses X-Git-Tag: 3.0.0_Beta_1~916^2~1^2~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5230a6f9eb7428676de9807bb95a29c23be1c98f;p=GitHub%2FWoltLab%2FWCF.git Reference the message-id of parent comment's email notification for responses --- diff --git a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseOwnerUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseOwnerUserNotificationEvent.class.php index c70a97be2d..cdf4ab2245 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseOwnerUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseOwnerUserNotificationEvent.class.php @@ -5,6 +5,7 @@ use wcf\data\user\User; use wcf\data\user\UserProfile; use wcf\system\cache\runtime\CommentRuntimeCache; use wcf\system\cache\runtime\UserProfileRuntimeCache; +use wcf\system\email\Email; use wcf\system\request\LinkHandler; use wcf\system\user\notification\object\CommentResponseUserNotificationObject; use wcf\system\WCF; @@ -97,9 +98,13 @@ class UserProfileCommentResponseOwnerUserNotificationEvent extends AbstractShare ]); } + $messageID = 'commentID.'@'.Email::getHost().'>'; + return [ 'template' => 'email_notification_userProfileCommentResponseOwner', 'application' => 'wcf', + 'in-reply-to' => [$messageID], + 'references' => [$messageID], 'variables' => [ 'commentAuthor' => $commentAuthor, 'owner' => $owner diff --git a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseUserNotificationEvent.class.php index d2ade897b2..ac7ea1e4b6 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseUserNotificationEvent.class.php @@ -1,6 +1,7 @@ getObject($this->additionalData['objectID']); + $messageID = 'commentID.'@'.Email::getHost().'>'; + return [ 'template' => 'email_notification_userProfileCommentResponse', 'application' => 'wcf', + 'in-reply-to' => [$messageID], + 'references' => [$messageID], 'variables' => [ 'owner' => $owner ]