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);
}
}