From 14e5b0c712e1967430970e2a0747e313253457fc Mon Sep 17 00:00:00 2001 From: Roland Hieber Date: Tue, 28 Aug 2018 00:37:16 +0200 Subject: [PATCH] twitter: fix include-rts/include-replies logic The first problem was that the variable names were switched, the second was that the API variable is named "exclude_replies" while the config option is named "include_replies?", so a negation is needed. --- mastodon-bot.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mastodon-bot.cljs b/mastodon-bot.cljs index bc77390..5e456cb 100755 --- a/mastodon-bot.cljs +++ b/mastodon-bot.cljs @@ -192,8 +192,8 @@ "statuses/user_timeline" #js {:screen_name account :tweet_mode "extended" - :include_rts (boolean include-replies?) - :exclude_replies (boolean include-rts?)} + :include_rts (boolean include-rts?) + :exclude_replies (not (boolean include-replies?))} (post-tweets last-post-time))))) ;;post from Tumblr (when-let [{:keys [access-keys accounts limit tumblr-oauth]} (:tumblr config)]