refactor: move avatar from internal/users to internal

This commit is contained in:
2026-05-28 12:36:50 +02:00
committed by Milas Holsting
parent 2091f0f365
commit 2068e6b0b7

11
internal/avatar.go Normal file
View File

@@ -0,0 +1,11 @@
package internal
import (
"net/url"
"strings"
)
func DefaultAvatarURL(username string) string {
seed := url.QueryEscape(strings.TrimSpace(username))
return "https://api.dicebear.com/9.x/dylan/svg?seed=" + seed
}