Skip to content

Commit

Permalink
Allow viewing but not creating AVIF inscriptions (ordinals#1428)
Browse files Browse the repository at this point in the history
  • Loading branch information
hashbender committed Feb 6, 2023
1 parent 345fc30 commit afd54d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/media.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ impl Media {
("audio/mpeg", Media::Audio, &["mp3"]),
("audio/wav", Media::Audio, &["wav"]),
("image/apng", Media::Image, &["apng"]),
("image/avif", Media::Image, &[]),
("image/gif", Media::Image, &["gif"]),
("image/jpeg", Media::Image, &["jpg", "jpeg"]),
("image/png", Media::Image, &["png"]),
Expand Down Expand Up @@ -58,7 +59,7 @@ impl Media {

let mut extensions = Self::TABLE
.iter()
.map(|(_, _, extensions)| extensions[0])
.flat_map(|(_, _, extensions)| extensions.first().cloned())
.collect::<Vec<&str>>();

extensions.sort();
Expand Down

0 comments on commit afd54d0

Please sign in to comment.