fix: merge conflicts

Signed-off-by: Luka Trovic <luka@nextcloud.com>
This commit is contained in:
Luka Trovic
2022-12-20 21:41:47 +01:00
parent 21c4955001
commit be27d3ed01
5 changed files with 6 additions and 34 deletions

View File

@@ -156,14 +156,4 @@ 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;
});
}
}