Add orig to image path

This commit is contained in:
Dylan 2025-05-14 16:26:16 +01:00
parent 72847c7993
commit f3adcf0c78

View File

@ -38,6 +38,8 @@ def tweetDataToActivity(tweetData,embedIndex = -1):
media['type'] = "gifv" media['type'] = "gifv"
if 'thumbnail_url' not in media: if 'thumbnail_url' not in media:
media['thumbnail_url'] = media['url'] media['thumbnail_url'] = media['url']
if media['type'] == "image" and "?" not in media['url']:
media['url'] += "?name=orig"
attachments.append({ attachments.append({
"id": "114163769487684704", "id": "114163769487684704",
"type": media['type'], "type": media['type'],