b2b40099577e — Ted Unangst 16 days ago
disable avif link for a bit
1 files changed, 1 insertions(+), 1 deletions(-)

M web.go
M web.go +1 -1
@@ 1559,7 1559,7 @@ func (d *Donk) HTML() template.HTML {
 		if d.Media == "text/plain" || d.Media == "application/pdf" {
 			return templates.Sprintf(`<p><a href="/d/%s">Attachment: %s</a>%s (%d)</p>`, d.XID, d.Name, desc, d.Meta.Length)
 		} else {
-			return templates.Sprintf(`<picture><source type="image/avif" srcset="/d/%s.avif"><img class="donk donklink" src="/d/%s" loading=lazy title="%s" alt="%s" width="%d" height="%d"></picture>`, d.XID, d.XID, d.Desc, d.Desc, d.Meta.Width, d.Meta.Height)
+			return templates.Sprintf(`<picture><source type="image/fiva" srcset="/d/%s.avif"><img class="donk donklink" src="/d/%s" loading=lazy title="%s" alt="%s" width="%d" height="%d"></picture>`, d.XID, d.XID, d.Desc, d.Desc, d.Meta.Width, d.Meta.Height)
 		}
 	} else {
 		if d.External {