Skip to content

Commit

Permalink
use deleted_users for users that do not exist
Browse files Browse the repository at this point in the history
Signed-off-by: grnd-alt <[email protected]>
  • Loading branch information
grnd-alt committed Aug 13, 2024
1 parent 669449d commit d86ef0b
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 d86ef0b

Please sign in to comment.