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.
This commit is contained in:
Roland Hieber 2018-08-28 00:37:16 +02:00
parent e2c9edcec5
commit 14e5b0c712

View file

@ -192,8 +192,8 @@
"statuses/user_timeline" "statuses/user_timeline"
#js {:screen_name account #js {:screen_name account
:tweet_mode "extended" :tweet_mode "extended"
:include_rts (boolean include-replies?) :include_rts (boolean include-rts?)
:exclude_replies (boolean include-rts?)} :exclude_replies (not (boolean include-replies?))}
(post-tweets last-post-time))))) (post-tweets last-post-time)))))
;;post from Tumblr ;;post from Tumblr
(when-let [{:keys [access-keys accounts limit tumblr-oauth]} (:tumblr config)] (when-let [{:keys [access-keys accounts limit tumblr-oauth]} (:tumblr config)]