Properly fill in all notification event information
authorTim Düsterhus <duesterhus@woltlab.com>
Sun, 19 Jun 2016 17:40:06 +0000 (19:40 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 29 Jul 2016 14:25:53 +0000 (16:25 +0200)
wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php

index 94328d740ce30bde4cb03ff68a387bfbc3d1b33d..991fe3005a8adb710884e1964da88042021aa038 100644 (file)
@@ -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);
                                                }
                                        }