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:
parent
0f38625e6c
commit
fc571d8ee5
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue