From 178c2a393702dda6f7151dd628395214fcc6c679 Mon Sep 17 00:00:00 2001 From: =Manuel Cortez Date: Sat, 8 Jul 2017 15:42:21 -0500 Subject: [PATCH] Changed the way used for detecting quoted tweets --- src/long_tweets/tweets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/long_tweets/tweets.py b/src/long_tweets/tweets.py index 74a0b832..4dec2977 100644 --- a/src/long_tweets/tweets.py +++ b/src/long_tweets/tweets.py @@ -19,7 +19,7 @@ from twitter import utils def is_long(tweet): - if "is_quote_status" in tweet and tweet["is_quote_status"] == True and "quoted_status" in tweet: + if "quoted_status_id" in tweet and tweet["quoted_status_id"] != None: return tweet["quoted_status_id"] return False