Skip to content

Commit

Permalink
fix: show media for tweets extracted from legacy Twitter archive
Browse files Browse the repository at this point in the history
  • Loading branch information
wzyboy committed Jul 30, 2023
1 parent b7a4cec commit 31ea479
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ash.py
Expand Up @@ -452,8 +452,8 @@ def get_tweet(tweet_id, ext):
videos.append({
'url': m['media_url_https']
})
# type is photo (tweet) or image (toot)
elif m.get('type') in ('photo', 'toot-image'):
# type is photo (tweet) or image (toot) or None (legacy tweet)
elif m.get('type') in ('photo', 'toot-image', None):
media_url = m['media_url_https']
if not _is_external_tweet:
media_url = replace_media_url(media_url)
Expand Down

0 comments on commit 31ea479

Please sign in to comment.