diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-02-14 07:17:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-14 07:17:54 -0500 |
commit | 49f877d32efc79cb40b2766cb052cf35bad31de5 (patch) | |
tree | 5c8f2b67c64f4852200ecd26f49c412698b08f7d /docs/spam_checker.md | |
parent | Update changelog for #6905 to group it with upcoming PRs (diff) | |
download | synapse-49f877d32efc79cb40b2766cb052cf35bad31de5.tar.xz |
Filter the results of user directory searching via the spam checker (#6888)
Add a method to the spam checker to filter the user directory results.
Diffstat (limited to 'docs/spam_checker.md')
-rw-r--r-- | docs/spam_checker.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/spam_checker.md b/docs/spam_checker.md index 97ff17f952..5b5f5000b7 100644 --- a/docs/spam_checker.md +++ b/docs/spam_checker.md @@ -54,6 +54,9 @@ class ExampleSpamChecker: def user_may_publish_room(self, userid, room_id): return True # allow publishing of all rooms + + def check_username_for_spam(self, user_profile): + return False # allow all usernames ``` ## Configuration |