souramoo / commentoplusplus

Commento with out of the box patches and updates to add useful features and fixes. Also with one-click deploy to Heroku so you can get up and running fast.
MIT License
391 stars 63 forks source link

Suppress 404 errors for missing commenter images and similar? #98

Closed sahava closed 2 years ago

sahava commented 2 years ago

Hi!

After importing from Commento, a bunch of older messages have broken commenter images. There's just a flood of 404 errors on my pages as a result.

image

Would there be a way to suppress these, or to load a placeholder in case the original image did not work?

sahava commented 2 years ago

When I try to open one of those broken images, I see this:

Image decode failed: png: invalid format: not enough pixel data

And some of the 404s do work when I visit the link – it's as if the server responded with 404 even though the image was available.

sahava commented 2 years ago

Looks like this was due to live-reload polling my Heroku deployment over and over, resulting in lack of resources to properly respond. Turning live-reload off helped.