diff options
author | pg9182 <96569817+pg9182@users.noreply.github.com> | 2022-10-15 10:49:28 -0400 |
---|---|---|
committer | pg9182 <96569817+pg9182@users.noreply.github.com> | 2022-10-15 10:49:28 -0400 |
commit | 0b57063d451db15e30b5568bfa3e3c2d77de8a87 (patch) | |
tree | 500c5c5bb4695fa848b12c6edeaa9426c88f5df7 /pkg/api/api0/api.go | |
parent | b4dc294dbe03210bd2cc0d69edc15a5e925f19c7 (diff) | |
download | Atlas-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.go | 4 |
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 |