Changed the way used for detecting quoted tweets

This commit is contained in:
Manuel Cortez 2017-07-08 15:42:21 -05:00 committed by Bill Dengler
parent 9175eda183
commit 178c2a3937

View File

@ -19,7 +19,7 @@
from twitter import utils from twitter import utils
def is_long(tweet): 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 tweet["quoted_status_id"]
return False return False