fix: live photo hiding (#17548)

This commit is contained in:
Daniel Dietzler 2025-04-12 00:09:58 +02:00 committed by GitHub
parent 3bec8dc337
commit 5548eb0dad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -646,7 +646,7 @@ export class AssetRepository {
const { ownerId, otherAssetId, livePhotoCID, type } = options;
return this.db
.selectFrom('assets')
.select('assets.id')
.select(['assets.id', 'assets.ownerId'])
.innerJoin('exif', 'assets.id', 'exif.assetId')
.where('id', '!=', asUuid(otherAssetId))
.where('ownerId', '=', asUuid(ownerId))