From fc571d8ee5d7ed7bd2805d550654906c1cf7bff3 Mon Sep 17 00:00:00 2001 From: EBendinelli Date: Tue, 12 Feb 2019 17:00:13 +0000 Subject: [PATCH] Fix to get the last toot time from account Previous last-post-time was taken from the Home timeline which consist of toots of followed people. This fix takes the time of the last toot of the targeted account --- mastodon-bot.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)