Added favicons (iconset && auto-detection)

This commit is contained in:
2023-12-23 23:52:53 +01:00
parent c38afc6ef3
commit 8eed2ca69f
32 changed files with 576 additions and 36 deletions

13
models/icon.go Normal file
View File

@@ -0,0 +1,13 @@
package models
import (
"gogs.mikescher.com/BlackForestBytes/goext/rfctime"
)
type Icon struct {
IconID IconID `bson:"_id,omitempty" json:"id"`
Checksum string `bson:"checksum" json:"checksum"`
Data []byte `bson:"data" json:"data"`
ContentType string `bson:"contentType" json:"contentType"`
Time rfctime.RFC3339NanoTime `bson:"time" json:"time"`
}