summary refs log tree commit diff
path: root/docs/spam_checker.md
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2021-02-04 17:01:59 +0000
committerErik Johnston <erik@matrix.org>2021-02-04 17:01:59 +0000
commitadc96d4236ccdafc3e56c3dd98b4436135321514 (patch)
treee6d2a907801938969ea6515584f651615cc3ff9c /docs/spam_checker.md
parentCorrect `matrix-synapse.service` reference in TURN howto docs. (#9308) (diff)
parentAdd check_media_file_for_spam spam checker hook (diff)
downloadsynapse-adc96d4236ccdafc3e56c3dd98b4436135321514.tar.xz
Merge branch 'erikj/media_spam_checker' into develop
Diffstat (limited to 'docs/spam_checker.md')
-rw-r--r--docs/spam_checker.md3
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