funkwhale/api/funkwhale_api/instance/consumers.py

9 wiersze
223 B
Python

from funkwhale_api.common.consumers import JsonAuthConsumer
class InstanceActivityConsumer(JsonAuthConsumer):
groups = ["instance_activity"]
def event_send(self, message):
self.send_json(message["data"])