mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 01:14:48 -04:00
Merge branch 'erikj/media_spam_checker' into develop
This commit is contained in:
commit
adc96d4236
6 changed files with 210 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue