SaxyPandaBear / food-pics

Scheduled webhook that scrapes Reddit and posts to Discord
MIT License
0 stars 0 forks source link

Scrub image URLs in food webhook #12

Closed SaxyPandaBear closed 2 years ago

SaxyPandaBear commented 2 years ago

For some reason, https://preview.redd.it/chun02can1f81.png?width=640&format=png&auto=webp&s=e05f245a349e5971ced5ed125327bb69fa0a4ccc did not render an embed correctly. The post was cross-posted in another subreddit, and that image was rendered successfully, but the image URL is different. Not sure if that is the source of the issue, but should probably scrub the URL to remove the URL params anyway.

SaxyPandaBear commented 2 years ago

d6f880efc80aadd7a71723f41ab6db8ec608417e fixes this