mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-19 01:57:48 -04:00
Add check_media_file_for_spam spam checker hook
This commit is contained in:
parent
afa18f1baa
commit
7e8083eb48
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