Re-enable attachments

This commit is contained in:
arne 2025-11-18 20:25:32 +01:00
commit 46a0766995
2 changed files with 10 additions and 6 deletions

View file

@ -321,12 +321,12 @@
" (mentioning " [list-accounts (:mentions post)] ")"])]
[:section.post-info
[:time.date {:datetime (:created_at post)} (first (str/split (:created_at post) "T"))]]]
[:section.content {:dangerouslySetInnerHTML (r/unsafe-html (:content post))}
(when (seq (:media_attachments post))
[:section.attachments
(map-indexed (fn [idx item]
^{:key idx} [attachment {:attachment item}])
(:media_attachments post))])]
[:section.content {:dangerouslySetInnerHTML (r/unsafe-html (:content post))}]
(when (seq (:media_attachments post))
[:section.attachments
(map-indexed (fn [idx item]
^{:key idx} [attachment {:attachment item}])
(:media_attachments post))])
[:nav
[:ul.controls
[:li.control-element.url