From 644717d272498ddd0f26a34eb68ec6ee95eae45a Mon Sep 17 00:00:00 2001 From: erik Date: Fri, 17 May 2024 18:30:59 +0200 Subject: [PATCH] Remove erroneous key --- src/main/dda/masto_embed/account_mode.cljs | 26 +++++++++------------- 1 file changed, 11 insertions(+), 15 deletions(-) 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)