diff --git a/lib/Activity/DeckProvider.php b/lib/Activity/DeckProvider.php index 12f9be73c..c92cf13c7 100644 --- a/lib/Activity/DeckProvider.php +++ b/lib/Activity/DeckProvider.php @@ -105,10 +105,18 @@ public function parse($language, IEvent $event, IEvent $previousEvent = null): I 'user' => [ 'type' => 'user', 'id' => $author, - 'name' => $user !== null ? $user->getDisplayName() : $author + 'name' => $user->getDisplayName() ], ]; $event->setAuthor($author); + } else { + $params = [ + 'user' => [ + 'type' => 'user', + 'id' => 'deleted_users', + 'name' => 'deleted_users', + ] + ]; } if ($event->getObjectType() === ActivityManager::DECK_OBJECT_BOARD) { if (!$this->activityManager->canSeeBoardActivity($event->getObjectId(), $event->getAffectedUser())) {