From: Alexander Ebert Date: Wed, 25 Dec 2019 16:27:19 +0000 (+0100) Subject: Populate the authors array for new notifications X-Git-Tag: 5.2.0~13 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9fc0458a93bbdc687cce0ac57d3ca5a327cc4ff5;p=GitHub%2FWoltLab%2FWCF.git Populate the authors array for new notifications --- 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 e94ff344a2..d9ffcbe88f 100644 --- a/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php @@ -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,