mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28: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",
|
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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue