From 3767f775ac1da5212aaa2e37590629f9a8286c5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Qui=C3=B1ones?= Date: Sat, 18 Aug 2018 17:41:15 +0200 Subject: [PATCH] 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 --- mastodon-bot.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon-bot.cljs b/mastodon-bot.cljs index 4012b8c..5d5b59d 100755 --- a/mastodon-bot.cljs +++ b/mastodon-bot.cljs @@ -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)]