factored out some common error messages to error objects that can be referenced

This commit is contained in:
2026-02-10 18:04:36 -07:00
parent cf5d4422ac
commit 38c4b3f71e
8 changed files with 42 additions and 24 deletions
+1 -1
View File
@@ -344,7 +344,7 @@ func EditCommunityLogo(ctxt ui.AmContext) (string, any) {
happy = true
return "redirect", "/comm/" + comm.Alias + "/admin/profile"
}
return "error", "invalid button detected in logo upload"
return "error", EBUTTON
}
/* CreateCommunityForm renders the form for creating a new community.