From 0ff6f40af8512bd6753690ca545699175df54069 Mon Sep 17 00:00:00 2001 From: bom Date: Fri, 17 May 2024 08:26:38 +0200 Subject: [PATCH] Move url in image element to src --- src/main/dda/masto_embed/account_mode.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/dda/masto_embed/account_mode.cljs b/src/main/dda/masto_embed/account_mode.cljs index 3f8215e..54eff1b 100644 --- a/src/main/dda/masto_embed/account_mode.cljs +++ b/src/main/dda/masto_embed/account_mode.cljs @@ -79,7 +79,7 @@ (defn masto-media->html [html media_attachments] (if-let [preview-image-url (get-in media_attachments [0 :preview_url])] (let [class-name "mastodon-post-content" - image-element {:type :element, :attrs {:class "mastodon-post-image", :src nil}, :tag :img, :content preview-image-url}] + image-element {:type :element, :attrs {:class "mastodon-post-image", :src preview-image-url}, :tag :img, :content nil}] (postwalk #(insert-into-class % class-name image-element) html)) html))