mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 21:29:16 +02:00
15 lines
359 B
Python
15 lines
359 B
Python
from funkwhale_api.moderation import mrf
|
|
|
|
|
|
from . import activity
|
|
|
|
|
|
@mrf.inbox.register(name="instance_policies")
|
|
def instance_policies(payload, **kwargs):
|
|
reject = activity.should_reject(
|
|
fid=payload.get("id"),
|
|
actor_id=kwargs.get("sender_id", payload.get("id")),
|
|
payload=payload,
|
|
)
|
|
if reject:
|
|
raise mrf.Discard()
|