Small fix for Activity embeds + non-discord clients

This commit is contained in:
Dylan
2026-02-01 16:17:41 +00:00
parent fb8abeb904
commit 68cc985b8c
2 changed files with 7 additions and 3 deletions
+4 -1
View File
@@ -35,7 +35,10 @@ def tweetDataToActivity(tweetData,embedIndex = -1):
if media is not None:
media = deepcopy(media)
if media['type'] == "gif":
media['type'] = "gifv"
if "/convert.avif" in media['url']:
media['type'] = "image"
else:
media['type'] = "gifv"
if 'thumbnail_url' not in media:
media['thumbnail_url'] = media['url']
if media['type'] == "image" and "?" not in media['url']: