Populate the authors array for new notifications
authorAlexander Ebert <ebert@woltlab.com>
Wed, 25 Dec 2019 16:27:19 +0000 (17:27 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 25 Dec 2019 16:27:19 +0000 (17:27 +0100)
wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php

index e94ff344a296d9d7d5e953130a89171656db686c..d9ffcbe88fc5f91fab2575d765c7eb29ea7af682 100644 (file)
@@ -110,6 +110,7 @@ class UserNotificationHandler extends SingletonFactory {
                
                // set object data
                $event->setObject(new UserNotification(null, []), $notificationObject, $userProfile, $additionalData);
+               $event->setAuthors([$event->getAuthorID() => $event->getAuthor()]);
                
                $parameters = [
                        'eventName' => $eventName,