I've recently noticed people are using AVIF more (e.g. posts from lemmy.zip), and these posts don't show the image like other image posts. I think the fix for this might simply be to add the extension in the isImage function in routes.go -- i.e. change the relevant line to something like:
if ext == ".jpeg" || ext == ".jpg" || ext == ".png" || ext == ".webp" || ext == ".gif" || ext == ".avif" {
but my local dev environment seems to have broken, so I can't test this myself right now.
If someone wants to go ahead and test this in a working dev environment, please do so! Otherwise I'll try it out and submit a PR eventually (assuming it works) when I get my dev environment debugged.
I've recently noticed people are using AVIF more (e.g. posts from lemmy.zip), and these posts don't show the image like other image posts. I think the fix for this might simply be to add the extension in the
isImagefunction in routes.go -- i.e. change the relevant line to something like:but my local dev environment seems to have broken, so I can't test this myself right now.
If someone wants to go ahead and test this in a working dev environment, please do so! Otherwise I'll try it out and submit a PR eventually (assuming it works) when I get my dev environment debugged.