Skip to content

High performance self-hosted photo and video management solution.

fix(server): show partners archived photos on mobile timeline (#9194)

Alexbbb9453e1a5d
diff --git a/server/src/dtos/asset-response.dto.ts b/server/src/dtos/asset-response.dto.ts
index f6ce8271ed..0afc906c95 100644
--- a/server/src/dtos/asset-response.dto.ts
+++ b/server/src/dtos/asset-response.dto.ts
@@ -110,7 +110,7 @@ export function mapAsset(entity: AssetEntity, options: AssetMapOptions = {}): As
localDateTime: entity.localDateTime,
updatedAt: entity.updatedAt,
isFavorite: options.auth?.user.id === entity.ownerId ? entity.isFavorite : false,
- isArchived: options.auth?.user.id === entity.ownerId ? entity.isArchived : false,
+ isArchived: entity.isArchived,
isTrashed: !!entity.deletedAt,
duration: entity.duration ?? '0:00:00.00000',
exifInfo: entity.exifInfo ? mapExif(entity.exifInfo) : undefined,