base function to get replies to status

This commit is contained in:
bom 2022-02-24 15:56:35 +01:00
parent 1cb2d824d0
commit bc5af89daa

View file

@ -41,6 +41,16 @@
(str "accounts/" account-id "/statuses") (str "accounts/" account-id "/statuses")
#js {})) #js {}))
; https://mastodon.example/api/v1/statuses/:id/context
; for parent and child statuses
; "descendants"
(defn get-replies
[host-url
status-id]
(.get (mastodon-client host-url)
(str "statuses/" status-id "/context")
#js {}))
(defn-spec get-directory any? (defn-spec get-directory any?
[host-url ::host-url] [host-url ::host-url]
(.get (mastodon-client host-url) (.get (mastodon-client host-url)