mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
fix(api): 🐛 Make thumbnail url for attachments default to attachment url
This commit is contained in:
parent
d6ce448c1c
commit
95a79a4585
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue