We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4ed14fa + 9fa0e17 commit 9487bf0Copy full SHA for 9487bf0
mautrix_twitter/portal.py
@@ -641,6 +641,8 @@ async def _handle_twitter_media(
641
self, source: u.User, intent: IntentAPI, message: MessageData
642
) -> MediaMessageEventContent | None:
643
media = message.attachment.media
644
+ # Fix for new media URLs
645
+ media.media_url_https = media.media_url_https.replace("ton.twitter.com/1.1", "ton.x.com/i")
646
reuploaded_info = await self._reupload_twitter_media(source, media.media_url_https, intent)
647
thumbnail_info = None
648
if media.video_info:
0 commit comments