diff --git a/src/main/dda/masto_embed/account_mode.cljs b/src/main/dda/masto_embed/account_mode.cljs index f75f7e0..23d87dd 100644 --- a/src/main/dda/masto_embed/account_mode.cljs +++ b/src/main/dda/masto_embed/account_mode.cljs @@ -26,21 +26,17 @@ [clojure.walk :refer [postwalk]])) (def link_preview - {:type :element, - :attrs {:href "LINK_PREVIEW_URL", :class "mastodon-post-link-preview", :target "_blank"}, - :tag :a, - :content - [{:type :element, - :attrs {:class "mastodon-post-link-image", :src "LINK_PREVIEW_IMG_URL"}, - :tag :img, - :content nil} - {:type :element, - :attrs {:class "mastodon-post-link-info"}, - :tag :div, - :content - [{:type :element, :attrs {:class "mastodon-post-link-title"}, :tag :h4, :content ["LINK_PREVIEW_TITLE"]} - {:type :element, :attrs {:class "mastodon-post-link-description"}, :tag :div, :content ["LINK_PREVIEW_DESC"]} - {:type :element, :attrs {:class "mastodon-post-link-url"}, :tag :div, :content ["LINK_PREVIEW_URL"]}]}]}) + [{:type :element, + :attrs {:class "mastodon-post-link-image", :src "LINK_PREVIEW_IMG_URL"}, + :tag :img, + :content nil} + {:type :element, + :attrs {:class "mastodon-post-link-info"}, + :tag :div, + :content + [{:type :element, :attrs {:class "mastodon-post-link-title"}, :tag :h4, :content ["LINK_PREVIEW_TITLE"]} + {:type :element, :attrs {:class "mastodon-post-link-description"}, :tag :div, :content ["LINK_PREVIEW_DESC"]} + {:type :element, :attrs {:class "mastodon-post-link-url"}, :tag :div, :content ["LINK_PREVIEW_URL"]}]}]) (defn mastocard->html [card] (when (some? card)