This repository has been archived by the owner on Oct 27, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 24
Reverse order of tweets posted #27
Labels
enhancement
New feature or request
Comments
Ah, I think it should just be a matter of doing reverse in the post-itmes function: (defn post-items [last-post-time items]
(doseq [{:keys [text media-links]} (->> items
(remove #(blocked-content? (:text %)))
(filter #(> (:created-at %) last-post-time))
(reverse))] ;; reverse the items
(if media-links
(post-status-with-images text media-links)
(when-not (:media-only? mastodon-config)
(post-status text))))) Let me know if that does the trick. |
Thanks! I'll try that on the next occasion and if it works, I'll send a PR. |
👍 |
Dev question: How do I update the compiled |
Ah, I haven't checked that part in. You have to run the ClojureScript compiler for that, I'll that part in. I use the cljs version myself via Lumo. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Thanks for mastodon-bot!
I noticed that when posting multiple tweets to Mastodon, the most recent tweet is posted first and the oldest is posted last, resulting in a reverse ordering.
How little work would it be to reverse the ordering of the twitter feed before processing it?
Unfortunately I have zero insights in Clojure development, so I am not able to solve this issue on my own.
The text was updated successfully, but these errors were encountered: