Exclude replies

Added the available parameter in the Twitter client to remove replies from the retrieved tweets https://developer.twitter.com/en/docs/tweets/timelines/api-reference/get-statuses-user_timeline.html
This commit is contained in:
David Quiñones 2018-08-18 17:41:15 +02:00 committed by GitHub
parent 350b265000
commit 3767f775ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -146,7 +146,7 @@
(doseq [account (-> config :twitter :accounts)]
(.get twitter-client
"statuses/user_timeline"
#js {:screen_name account :include_rts false}
#js {:screen_name account :include_rts false :exclude_replies true}
(post-tweets last-post-time))))
;;post from Tumblr
(when-let [tumblr-oauth (some-> config :tumblr :access-keys clj->js)]