Fix processing tweets when nitter url rewriting is disabled
This commit is contained in:
parent
e7b0ed233e
commit
8ed30c3057
1 changed files with 3 additions and 2 deletions
|
@ -54,8 +54,9 @@
|
|||
(defn-spec nitter-url map?
|
||||
[source twitter-source?
|
||||
parsed-tweet map?]
|
||||
(when (:nitter-urls? source)
|
||||
(update parsed-tweet :text #(string/replace % #"https://twitter.com" "https://nitter.net"))))
|
||||
(if (:nitter-urls? source)
|
||||
(update parsed-tweet :text #(string/replace % #"https://twitter.com" "https://nitter.net"))
|
||||
parsed-tweet))
|
||||
|
||||
(defn-spec user-timeline any?
|
||||
[twitter-auth twitter-auth?
|
||||
|
|
Reference in a new issue