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

fix(mobile): show partners archived photos on timeline
This commit is contained in:
Alex 2024-05-06 22:49:56 -05:00 committed by GitHub
parent 8ff397527f
commit bbb9453e1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,