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
This commit is contained in:
EBendinelli 2019-02-12 17:00:13 +00:00 committed by GitHub
parent 0f38625e6c
commit fc571d8ee5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)