fix(api): 🐛 Make thumbnail url for attachments default to attachment url

This commit is contained in:
Jesse Wierzbinski 2024-04-14 20:35:53 -10:00
parent d6ce448c1c
commit 95a79a4585
No known key found for this signature in database

View file

@ -27,7 +27,7 @@ export const attachmentToAPI = (
type: type as "image" | "video" | "audio" | "unknown", type: type as "image" | "video" | "audio" | "unknown",
url: attachment.url, url: attachment.url,
remote_url: attachment.remoteUrl, remote_url: attachment.remoteUrl,
preview_url: attachment.thumbnailUrl, preview_url: attachment.thumbnailUrl || attachment.url,
text_url: null, text_url: null,
meta: { meta: {
width: attachment.width || undefined, width: attachment.width || undefined,