Compare commits

..

3 commits

Author SHA1 Message Date
bom
1821e2bf08 Link to status instead of account 2024-05-10 11:31:06 +02:00
bom
4114318ded Filter replies from account_mode 2024-05-10 11:25:17 +02:00
bom
9f75c9ed0d Filter boosts from account status 2024-05-10 11:21:18 +02:00

View file

@ -41,7 +41,7 @@
[:li {:class "list-group-item, card"}
[:div {:class "card-body"}
[: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 :hour-minute-second) date)]]
[:p {:class "card-text"}
@ -57,11 +57,12 @@
(<p! (api/get-directory host-url))
api/mastojs->edn
(filter #(= account-name (:acct %)))
(infra/debug)
(map :id)
first)))
out))
; (infra/debug)
(defn account-mode [host-url account-name]
(go
(let [account-id (<! (find-account-id host-url account-name))
@ -69,6 +70,8 @@
(<p! (api/get-account-statuses host-url account-id))
api/mastojs->edn)]
(->> statuus
(filter #(= nil (:reblog %)))
(filter #(= nil (:in_reply_to_account_id %)))
(take 4)
(masto->html)
(render-html)