feat: add list/upload flag UI

This commit is contained in:
Sam 2023-05-29 00:18:02 +02:00
parent a4698e179a
commit 8b03521382
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
10 changed files with 223 additions and 12 deletions

View file

@ -19,6 +19,7 @@ import (
const ErrInvalidDataURI = errors.Sentinel("invalid data URI")
const ErrInvalidContentType = errors.Sentinel("invalid avatar content type")
const ErrFileTooLarge = errors.Sentinel("file to be converted exceeds maximum size")
// ConvertAvatar parses an avatar from a data URI, converts it to WebP and JPEG, and returns the results.
func (db *DB) ConvertAvatar(data string) (