Skip to content

High performance self-hosted photo and video management solution.

fix(server): `getAllAssets` endpoint includes motion part of LivePhotos (#7194)

Alexa8f177066bf9
diff --git a/server/src/immich/api-v1/asset/asset.service.ts b/server/src/immich/api-v1/asset/asset.service.ts
index 58f800f08c..17488016c9 100644
--- a/server/src/immich/api-v1/asset/asset.service.ts
+++ b/server/src/immich/api-v1/asset/asset.service.ts
@@ -116,7 +116,7 @@ export class AssetService {
await this.access.requirePermission(auth, Permission.TIMELINE_READ, userId);
const assets = await this.assetRepository.getAllByFileCreationDate(
{ take: dto.take ?? 1000, skip: dto.skip },
- { ...dto, userIds: [userId], withDeleted: true, orderDirection: 'DESC', withExif: true },
+ { ...dto, userIds: [userId], withDeleted: true, orderDirection: 'DESC', withExif: true, isVisible: true },
);
return assets.items.map((asset) => mapAsset(asset));
}