From 9fc0458a93bbdc687cce0ac57d3ca5a327cc4ff5 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 25 Dec 2019 17:27:19 +0100 Subject: [PATCH] Populate the authors array for new notifications --- .../system/user/notification/UserNotificationHandler.class.php | 1 + 1 file changed, 1 insertion(+) 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, -- 2.20.1