From 95a79a45853964f889e031f77cc4e816fd016bb1 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Sun, 14 Apr 2024 20:35:53 -1000 Subject: [PATCH] fix(api): :bug: Make thumbnail url for attachments default to attachment url --- database/entities/Attachment.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/entities/Attachment.ts b/database/entities/Attachment.ts index c68741d6..aabcc4a2 100644 --- a/database/entities/Attachment.ts +++ b/database/entities/Attachment.ts @@ -27,7 +27,7 @@ export const attachmentToAPI = ( type: type as "image" | "video" | "audio" | "unknown", url: attachment.url, remote_url: attachment.remoteUrl, - preview_url: attachment.thumbnailUrl, + preview_url: attachment.thumbnailUrl || attachment.url, text_url: null, meta: { width: attachment.width || undefined,