diff options
author | Erik Johnston <erik@matrix.org> | 2021-02-04 17:01:59 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2021-02-04 17:01:59 +0000 |
commit | adc96d4236ccdafc3e56c3dd98b4436135321514 (patch) | |
tree | e6d2a907801938969ea6515584f651615cc3ff9c /docs/spam_checker.md | |
parent | Correct `matrix-synapse.service` reference in TURN howto docs. (#9308) (diff) | |
parent | Add check_media_file_for_spam spam checker hook (diff) | |
download | synapse-adc96d4236ccdafc3e56c3dd98b4436135321514.tar.xz |
Merge branch 'erikj/media_spam_checker' into develop
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 5b4f6428e6..47a27bf85c 100644 --- a/docs/spam_checker.md +++ b/docs/spam_checker.md @@ -61,6 +61,9 @@ class ExampleSpamChecker: async def check_registration_for_spam(self, email_threepid, username, request_info): return RegistrationBehaviour.ALLOW # allow all registrations + + async def check_media_file_for_spam(self, file_wrapper, file_info): + return False # allow all media ``` ## Configuration |