aboutsummaryrefslogtreecommitdiff
path: root/pkg/api/api0/api.go
diff options
context:
space:
mode:
authorpg9182 <96569817+pg9182@users.noreply.github.com>2022-10-15 10:49:28 -0400
committerpg9182 <96569817+pg9182@users.noreply.github.com>2022-10-15 10:49:28 -0400
commit0b57063d451db15e30b5568bfa3e3c2d77de8a87 (patch)
tree500c5c5bb4695fa848b12c6edeaa9426c88f5df7 /pkg/api/api0/api.go
parentb4dc294dbe03210bd2cc0d69edc15a5e925f19c7 (diff)
downloadAtlas-0b57063d451db15e30b5568bfa3e3c2d77de8a87.tar.gz
Atlas-0b57063d451db15e30b5568bfa3e3c2d77de8a87.zip
pkg/api/api0: Implement bad words filter option
Diffstat (limited to 'pkg/api/api0/api.go')
-rw-r--r--pkg/api/api0/api.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/api/api0/api.go b/pkg/api/api0/api.go
index 0786463..818f6b9 100644
--- a/pkg/api/api0/api.go
+++ b/pkg/api/api0/api.go
@@ -43,6 +43,10 @@ type Handler struct {
// usernames). If not provided, usernames will not be updated.
OriginAuthMgr *origin.AuthMgr
+ // CleanBadWords is used to filter bad words from server names and
+ // descriptions. If not provided, words will not be filtered.
+ CleanBadWords func(s string) string
+
// MainMenuPromos gets the main menu promos to return for a request.
MainMenuPromos func(*http.Request) MainMenuPromos