prevent loading svg and webp if on netbsd (thanks gtk)

This commit is contained in:
2026-02-20 09:01:40 +00:00
parent 1dd3f09fed
commit 15ff7a20db

View File

@@ -296,7 +296,7 @@ func getAvatar(j, hash string) *gtk.Image { // TODO: This function probably shou
} }
base64_data := card.Photo.Binval base64_data := card.Photo.Binval
if card.Photo.Binval == "" || ((card.Photo.Type == "image/svg+xml" || card.Photo.Type == "image/webp") && (runtime.GOOS == "windows")) { if card.Photo.Binval == "" || ((card.Photo.Type == "image/svg+xml" || card.Photo.Type == "image/webp") && (runtime.GOOS == "windows" || runtime.GOOS == "netbsd")) {
return gtk.NewImageFromPaintable(clientAssets["DefaultAvatar"]) return gtk.NewImageFromPaintable(clientAssets["DefaultAvatar"])
} }