mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 23:29:17 +02:00
MRF / Dropping of incoming/outgoing messages based on allow-list
This commit is contained in:
parent
371dc01205
commit
08262529ec
24 changed files with 897 additions and 89 deletions
13
api/funkwhale_api/moderation/apps.py
Normal file
13
api/funkwhale_api/moderation/apps.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
from django.apps import AppConfig, apps
|
||||
|
||||
from . import mrf
|
||||
|
||||
|
||||
class ModerationConfig(AppConfig):
|
||||
name = "funkwhale_api.moderation"
|
||||
|
||||
def ready(self):
|
||||
super().ready()
|
||||
|
||||
app_names = [app.name for app in apps.app_configs.values()]
|
||||
mrf.inbox.autodiscover(app_names)
|
Loading…
Add table
Add a link
Reference in a new issue