From 8537c8ee54e2722dff61df2349823d3a9eb0c554 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Sun, 4 Dec 2022 12:48:07 +0000 Subject: [PATCH] feat: add remote url to image srcset in case original is down --- components/status/StatusAttachment.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/components/status/StatusAttachment.vue b/components/status/StatusAttachment.vue index 9c6e7d1b..515271b0 100644 --- a/components/status/StatusAttachment.vue +++ b/components/status/StatusAttachment.vue @@ -10,6 +10,7 @@ const { attachment } = defineProps<{ const src = $computed(() => attachment.previewUrl || attachment.url || attachment.remoteUrl!) const srcset = $computed(() => [ [attachment.url, attachment.meta?.original?.width], + [attachment.remoteUrl, attachment.meta?.original?.width], [attachment.previewUrl, attachment.meta?.small?.width], ].filter(([url]) => url).map(([url, size]) => `${url} ${size}w`).join(', '))