@@ 1051,7 1051,7 @@ func xonksaver2(user *WhatAbout, item ju
case "image/jpeg":
p = 1
case "image/avif":
- if convertAVIF {
+ if acceptAVIF {
p = 2
}
}
@@ 51,6 51,7 @@ var aboutMsg template.HTML
var loginMsg template.HTML
var collectForwards = true
var convertAVIF = false
+var acceptAVIF = false
func serverURL(u string, args ...interface{}) string {
return fmt.Sprintf("https://"+serverName+u, args...)
@@ 187,6 188,9 @@ func main() {
if convertAVIF {
if !lazif.Load() {
elog.Printf("libavif could not be loaded")
+ convertAVIF = false
+ } else {
+ getconfig("acceptavif", &acceptAVIF)
}
}