From: Tim Düsterhus Date: Sun, 19 Jun 2016 17:40:06 +0000 (+0200) Subject: Properly fill in all notification event information X-Git-Tag: 3.0.0_Beta_1~916^2~1^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=aaf2d0843c40cdaeb7536b0fcf3c75765ce71794;p=GitHub%2FWoltLab%2FWCF.git Properly fill in all notification event information --- diff --git a/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php b/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php index 94328d740c..991fe3005a 100644 --- a/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php @@ -230,10 +230,8 @@ class UserNotificationHandler extends SingletonFactory { foreach ($recipients as $recipient) { if ($recipient->mailNotificationType == 'instant') { if (isset($notifications[$recipient->userID]) && $notifications[$recipient->userID]['isNew']) { - // update UserNotification object $event->setObject($notifications[$recipient->userID]['object'], $notificationObject, $userProfile, $additionalData); - - // send notification + $event->setAuthors([$userProfile->userID => $userProfile]); $this->sendInstantMailNotification($notifications[$recipient->userID]['object'], $recipient, $event); } }