Merge pull request #1 from netzbegruenung/reverse-order

Reverse order of tweets
This commit is contained in:
Marian Steinbach 2019-11-24 21:19:31 +01:00 committed by GitHub
commit 0bf39996f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -128,7 +128,8 @@
(defn post-items [last-post-time items]
(doseq [{:keys [text media-links]} (->> items
(remove #(blocked-content? (:text %)))
(filter #(> (:created-at %) last-post-time)))]
(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)