Skip to content

AVIF images #22

@e0qdk

Description

@e0qdk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions