this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #353 from rakoo/fix-remote-media

Remote media: avoid never-ending loops if it won't work

authored by

Chee Aun and committed by
GitHub
a9c624dc 433d8b3b

+2 -2
+2 -2
src/components/media.jsx
··· 274 274 }} 275 275 onError={(e) => { 276 276 const { src } = e.target; 277 - if (src === mediaURL) { 277 + if (src === mediaURL && mediaURL !== remoteMediaURL) { 278 278 e.target.src = remoteMediaURL; 279 279 } 280 280 }} ··· 307 307 }} 308 308 onError={(e) => { 309 309 const { src } = e.target; 310 - if (src === mediaURL) { 310 + if (src === mediaURL && mediaURL !== remoteMediaURL) { 311 311 e.target.src = remoteMediaURL; 312 312 } 313 313 }}