Fixing a bug that cuased media replies to tweets to be archived.

This commit is contained in:
Alex Huddleston 2020-05-16 19:13:12 +00:00
parent c437febbed
commit fa226c7abd

View file

@ -69,7 +69,9 @@ def archive_media_status(status):
str -- None, or a list of filenames of the media archived locally
"""
try:
if(not ('retweeted_status' in status._json.keys())):
if(not ('retweeted_status' in status._json.keys()) and
not (status.in_reply_to_status_id) and
not (status.in_reply_to_user_id)):
if('extended_entities' in status._json.keys()):
if('media' in status.extended_entities.keys()):
archive_filenames = []