diff --git a/lib/NotificationGenerator.php b/lib/NotificationGenerator.php index 43dfc6d1b..e65592e48 100644 --- a/lib/NotificationGenerator.php +++ b/lib/NotificationGenerator.php @@ -50,7 +50,7 @@ public function sendNotificationForEvent(IEvent $event, int $activityId, ?bool $ private function getNotificationForEvent(IEvent $event, int $activityId): INotification { $notification = $this->notificationManager->createNotification(); - $notification->setApp($event->getApp()); + $notification->setApp($this->getID()); $notification->setUser($event->getAffectedUser()); $notification->setDateTime(\DateTime::createFromFormat('U', (string)$event->getTimestamp())); $notification->setObject('activity_notification', (string)$activityId);