Compare commits
3 commits
93b1faff6a
...
1821e2bf08
Author | SHA1 | Date | |
---|---|---|---|
1821e2bf08 | |||
4114318ded | |||
9f75c9ed0d |
1 changed files with 5 additions and 2 deletions
|
@ -41,7 +41,7 @@
|
||||||
[:li {:class "list-group-item, card"}
|
[:li {:class "list-group-item, card"}
|
||||||
[:div {:class "card-body"}
|
[:div {:class "card-body"}
|
||||||
[:h2 {:class "card-title"}
|
[:h2 {:class "card-title"}
|
||||||
[:a {:href (get-in status [:account :url])}
|
[:a {:href (get-in status [:card :url])}
|
||||||
(t/unparse (t/formatters :date) date) " "
|
(t/unparse (t/formatters :date) date) " "
|
||||||
(t/unparse (t/formatters :hour-minute-second) date)]]
|
(t/unparse (t/formatters :hour-minute-second) date)]]
|
||||||
[:p {:class "card-text"}
|
[:p {:class "card-text"}
|
||||||
|
@ -57,11 +57,12 @@
|
||||||
(<p! (api/get-directory host-url))
|
(<p! (api/get-directory host-url))
|
||||||
api/mastojs->edn
|
api/mastojs->edn
|
||||||
(filter #(= account-name (:acct %)))
|
(filter #(= account-name (:acct %)))
|
||||||
(infra/debug)
|
|
||||||
(map :id)
|
(map :id)
|
||||||
first)))
|
first)))
|
||||||
out))
|
out))
|
||||||
|
|
||||||
|
; (infra/debug)
|
||||||
|
|
||||||
(defn account-mode [host-url account-name]
|
(defn account-mode [host-url account-name]
|
||||||
(go
|
(go
|
||||||
(let [account-id (<! (find-account-id host-url account-name))
|
(let [account-id (<! (find-account-id host-url account-name))
|
||||||
|
@ -69,6 +70,8 @@
|
||||||
(<p! (api/get-account-statuses host-url account-id))
|
(<p! (api/get-account-statuses host-url account-id))
|
||||||
api/mastojs->edn)]
|
api/mastojs->edn)]
|
||||||
(->> statuus
|
(->> statuus
|
||||||
|
(filter #(= nil (:reblog %)))
|
||||||
|
(filter #(= nil (:in_reply_to_account_id %)))
|
||||||
(take 4)
|
(take 4)
|
||||||
(masto->html)
|
(masto->html)
|
||||||
(render-html)
|
(render-html)
|
||||||
|
|
Loading…
Reference in a new issue