From 1d6a4e9318c80006f51b30a17a1be6b7ef87ebaf Mon Sep 17 00:00:00 2001 From: bo0tzz Date: Wed, 5 Feb 2025 16:20:46 +0100 Subject: [PATCH] fix: call hexOrBufferToBase64 for stripMetadata thumbhash (#15917) Fixes #15916 (I think) --- server/src/dtos/asset-response.dto.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/dtos/asset-response.dto.ts b/server/src/dtos/asset-response.dto.ts index 0658567912..9a963e1e98 100644 --- a/server/src/dtos/asset-response.dto.ts +++ b/server/src/dtos/asset-response.dto.ts @@ -118,7 +118,7 @@ export function mapAsset(entity: AssetEntity, options: AssetMapOptions = {}): As id: entity.id, type: entity.type, originalMimeType: mimeTypes.lookup(entity.originalFileName), - thumbhash: entity.thumbhash?.toString('base64') ?? null, + thumbhash: entity.thumbhash ? hexOrBufferToBase64(entity.thumbhash) : null, localDateTime: entity.localDateTime, duration: entity.duration ?? '0:00:00.00000', livePhotoVideoId: entity.livePhotoVideoId,