Changed the way used for detecting quoted tweets

This commit is contained in:
Manuel Cortez 2017-07-08 15:42:21 -05:00
parent 7a7634833a
commit 4c22c29241

View File

@ -19,7 +19,7 @@
from twitter import utils
def is_long(tweet):
if tweet.has_key("is_quote_status") and tweet["is_quote_status"] == True and tweet.has_key("quoted_status"):
if tweet.has_key("quoted_status_id") and tweet["quoted_status_id"] != None:
return tweet["quoted_status_id"]
return False