Merge branch 'erikj/media_spam_checker' into develop

This commit is contained in:
Erik Johnston 2021-02-04 17:01:59 +00:00
commit adc96d4236
6 changed files with 210 additions and 6 deletions

View file

@ -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