From aaf2d0843c40cdaeb7536b0fcf3c75765ce71794 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 19 Jun 2016 19:40:06 +0200 Subject: [PATCH] Properly fill in all notification event information --- .../user/notification/UserNotificationHandler.class.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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); } } -- 2.20.1