Open
Description
My use case is that I'm also archiving tweets, in case they get deleted. I'm storing them in buckets (like AWS S3) in a filename.extension
format, so like image.jpg
, video.mp4
, etc.
The problem I'm running into is that for images the URL gets mapped to filename?format=extension&name=small
, e.g. image?format=jpg&name=small
. From my testing, when using the X/Twitter CDN both variants work, and return the exact same image.
I propose adding an optional flag to MediaImgProps
which gets passed down to getMediaUrl
to make the URL params conditional.
The flag's default value should keep the current functionality.
If this conceptually sounds okay, I'll make a PR.
Metadata
Metadata
Assignees
Labels
No labels