feat: add ability to search and select icons from selfh.st (#1807)

This commit is contained in:
Elias Schneider
2026-10-04 20:40:41 +02:00
committed by GitHub
parent e7d77d8a9d
commit 1be9ba9991
30 changed files with 1506 additions and 247 deletions
@@ -276,6 +276,14 @@ func LogoTooLarge(maxSize string) *Error {
WithDetail("max_size", maxSize)
}
func LogoPresetsDisabled() *Error {
return New(CodeLogoPresetsDisabled, http.StatusForbidden, "Logo presets are disabled")
}
func LogoPresetsUnavailable(cause error) *Error {
return Wrap(cause, CodeLogoPresetsUnavailable, http.StatusBadGateway, "Logo presets could not be loaded")
}
func InvalidLogoURL(cause error) *Error {
return Wrap(cause, CodeValidationFailed, http.StatusBadRequest, "Logo URL is not allowed").WithFields([]FieldError{{
Field: "logoUrl",