diff --git a/README.md b/README.md index 6cfe1ad..25d2eae 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ with later timestamps to avoid duplicate posts. On the first run the timestamp w :rss {"Hacker News" "https://hnrss.org/newest" "r/Clojure" "https://www.reddit.com/r/clojure/.rss"} :mastodon {:access_token "XXXX" + :acccount-id "XXXX" :api_url "https://botsin.space/api/v1/" ;; optional boolean to mark content as sensitive :sensitive? true diff --git a/mastodon-bot.cljs b/mastodon-bot.cljs index 11242f6..6cfa7ed 100755 --- a/mastodon-bot.cljs +++ b/mastodon-bot.cljs @@ -119,7 +119,7 @@ (post-status status-text (not-empty ids))))) (defn get-mastodon-timeline [callback] - (.then (.get mastodon-client "timelines/home" #js {}) + (.then (.get mastodon-client (string/join "" ["accounts/" (:account-id mastodon-config) "/statuses"]) #js {}) #(let [response (-> % .-data js->edn)] (if-let [error (:error response)] (exit-with-error error)