Remove erroneous key
This commit is contained in:
parent
90ec08522d
commit
644717d272
1 changed files with 11 additions and 15 deletions
|
@ -26,10 +26,6 @@
|
||||||
[clojure.walk :refer [postwalk]]))
|
[clojure.walk :refer [postwalk]]))
|
||||||
|
|
||||||
(def link_preview
|
(def link_preview
|
||||||
{:type :element,
|
|
||||||
:attrs {:href "LINK_PREVIEW_URL", :class "mastodon-post-link-preview", :target "_blank"},
|
|
||||||
:tag :a,
|
|
||||||
:content
|
|
||||||
[{:type :element,
|
[{:type :element,
|
||||||
:attrs {:class "mastodon-post-link-image", :src "LINK_PREVIEW_IMG_URL"},
|
:attrs {:class "mastodon-post-link-image", :src "LINK_PREVIEW_IMG_URL"},
|
||||||
:tag :img,
|
:tag :img,
|
||||||
|
@ -40,7 +36,7 @@
|
||||||
:content
|
:content
|
||||||
[{:type :element, :attrs {:class "mastodon-post-link-title"}, :tag :h4, :content ["LINK_PREVIEW_TITLE"]}
|
[{: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-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-url"}, :tag :div, :content ["LINK_PREVIEW_URL"]}]}])
|
||||||
|
|
||||||
(defn mastocard->html [card]
|
(defn mastocard->html [card]
|
||||||
(when (some? card)
|
(when (some? card)
|
||||||
|
|
Loading…
Reference in a new issue