From 2a84bbb3d64f201fc4e72cea48531fb117488678 Mon Sep 17 00:00:00 2001 From: Alex <49969959+alexzhang1030@users.noreply.github.com> Date: Sat, 3 Dec 2022 00:48:44 +0800 Subject: [PATCH] fix(ui): use correct url for timeline image srcset (#296) --- components/status/StatusAttachment.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/status/StatusAttachment.vue b/components/status/StatusAttachment.vue index db4cb8b0..9c6e7d1b 100644 --- a/components/status/StatusAttachment.vue +++ b/components/status/StatusAttachment.vue @@ -9,7 +9,7 @@ const { attachment } = defineProps<{ const src = $computed(() => attachment.previewUrl || attachment.url || attachment.remoteUrl!) const srcset = $computed(() => [ - [src, attachment.meta?.original?.width], + [attachment.url, attachment.meta?.original?.width], [attachment.previewUrl, attachment.meta?.small?.width], ].filter(([url]) => url).map(([url, size]) => `${url} ${size}w`).join(', '))