mirror of
https://github.com/netzbegruenung/mastodon-bot.git
synced 2024-05-05 04:13:41 +02:00
Reverse the order of items
This commit is contained in:
parent
1f8511b6ad
commit
48b66abcbb
|
@ -128,7 +128,8 @@
|
||||||
(defn post-items [last-post-time items]
|
(defn post-items [last-post-time items]
|
||||||
(doseq [{:keys [text media-links]} (->> items
|
(doseq [{:keys [text media-links]} (->> items
|
||||||
(remove #(blocked-content? (:text %)))
|
(remove #(blocked-content? (:text %)))
|
||||||
(filter #(> (:created-at %) last-post-time)))]
|
(filter #(> (:created-at %) last-post-time))
|
||||||
|
(reverse))] ;; reverse the items
|
||||||
(if media-links
|
(if media-links
|
||||||
(post-status-with-images text media-links)
|
(post-status-with-images text media-links)
|
||||||
(when-not (:media-only? mastodon-config)
|
(when-not (:media-only? mastodon-config)
|
||||||
|
|
Loading…
Reference in a new issue