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,