fix: merge conflicts

Signed-off-by: Luka Trovic <luka@nextcloud.com>
This commit is contained in:
Luka Trovic
2022-12-20 21:34:10 +01:00
parent 67adda5f84
commit 21c4955001
4 changed files with 34 additions and 4 deletions

View File

@@ -156,4 +156,14 @@ class AttachmentMapper extends DeckMapper implements IPermissionMapper {
}
return $this->cardMapper->findBoardId($attachment->getCardId());
}
public function mapOwner(Attachment &$attachment) {
$attachment->resolveRelation('createdBy', function ($userId) {
$user = $this->userManager->get($userId);
if ($user !== null) {
return new User($user);
}
return $user;
});
}
}