Move url in image element to src
This commit is contained in:
parent
051800a3d2
commit
0ff6f40af8
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@
|
||||||
(defn masto-media->html [html media_attachments]
|
(defn masto-media->html [html media_attachments]
|
||||||
(if-let [preview-image-url (get-in media_attachments [0 :preview_url])]
|
(if-let [preview-image-url (get-in media_attachments [0 :preview_url])]
|
||||||
(let [class-name "mastodon-post-content"
|
(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))
|
(postwalk #(insert-into-class % class-name image-element) html))
|
||||||
html))
|
html))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue