Merge pull request #57 from raboof/fix-processing-tweets-without-nitter-rewrite
Fix processing tweets when nitter url rewriting is disabled
This commit is contained in:
commit
2fbb14333f
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