Skip to content

Commit

Permalink
Merge pull request #6201 from nextcloud/fix/use-deleted-users-for-act…
Browse files Browse the repository at this point in the history
…ivities

use deleted_users for users that do not exist
  • Loading branch information
grnd-alt authored Aug 13, 2024
2 parents 669449d + d86ef0b commit e56332b
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 @@ -86,10 +86,18 @@ public function parse($language, IEvent $event, ?IEvent $previousEvent = null):
'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 e56332b

Please sign in to comment.