Monorepo for Tangled tangled.org
2

Configure Feed

Select the types of activity you want to include in your feed.

appview/settings: prevent domain claims shorter than 4 chars

🤑📈

Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.org>

author
Anirudh Oppiliappan
date (Mar 11, 2026, 12:51 PM +0100) commit 3cd32da9 parent ddd98867 change-id oqtlmrow
+5
+5
appview/settings/settings.go
··· 118 118 return 119 119 } 120 120 121 + if len(subdomain) < 4 { 122 + s.Pages.Notice(w, "settings-sites-error", "Subdomain must be at least 4 characters long.") 123 + return 124 + } 125 + 121 126 if !isValidSubdomain(subdomain) { 122 127 s.Pages.Notice(w, "settings-sites-error", "Invalid subdomain. Use only lowercase letters, digits, and hyphens. Cannot start or end with a hyphen.") 123 128 return