react-tweet icon indicating copy to clipboard operation
react-tweet copied to clipboard

Images not loading in Firefox private browser

Open mikewheaton opened this issue 1 year ago • 3 comments

We're seeing images (both user avatars and content within tweets) being blocked in Firefox private browsers with Enhanced Tracking Protection turned on:

Image

Image

Image

Test URL: https://chef.convex.dev/

This is quite possibly a wontfix because the browser is blocking images coming from Twitter, but I figured it could be worth reporting for others who may run into this issue.

I'm not sure if it's been considered to support proxy services or somehow pre-rendering/caching the tweets so that these requests are made to the website using react-tweet and not directly to Twitter.

mikewheaton avatar Apr 30 '25 17:04 mikewheaton

it's hard to fix

LinuxKunaL avatar May 11 '25 04:05 LinuxKunaL

@LinuxKunaL Totally understand, and feel free to close this. Just wanted to report it for anyone else who may be investigating the same issue and hoping for a quick fix. We ended up building a custom tweet component with hard-coded data to ensure no one runs into this.

mikewheaton avatar May 12 '25 17:05 mikewheaton

It seems the issue is primarily related to the URL suffix. Changing _normal to _400x400 allows the avatar image to load, take note it only fetches the version that existed at the time the tweet was posted. Assume this has something to do with it as well.

  • Changing _normal to _400x400 prevents 404s.

#201

BankkRoll avatar Sep 10 '25 23:09 BankkRoll