Skip to content

Commit

Permalink
Merge pull request #6202 from nextcloud/backport/6201/stable27
Browse files Browse the repository at this point in the history
[stable27] use deleted_users for users that do not exist
  • Loading branch information
grnd-alt authored Aug 13, 2024
2 parents 2d4eaee + b04dbea commit 06f209e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/Activity/DeckProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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())) {
Expand Down

0 comments on commit 06f209e

Please sign in to comment.