Basic working poc with favorites send over websocket

This commit is contained in:
Eliot Berriot 2018-03-01 21:51:20 +01:00
parent e490284511
commit d509c090d3
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
7 changed files with 29 additions and 28 deletions

View file

@ -0,0 +1,8 @@
from funkwhale_api.common.consumers import JsonAuthConsumer
class InstanceActivityConsumer(JsonAuthConsumer):
groups = ["instance_activity"]
def event_send(self, message):
self.send_json(message['data'])