Add orig to image path
This commit is contained in:
parent
72847c7993
commit
f3adcf0c78
@ -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'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user