mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 05:59:17 +02:00
Revert to apline:3.11 to stay on Python 3.7 (3.8 has issues with channels)
This commit is contained in:
parent
9a2876469a
commit
14d5b0c69c
5 changed files with 39 additions and 5 deletions
|
@ -14,7 +14,11 @@ class JsonAuthConsumer(JsonWebsocketConsumer):
|
|||
|
||||
def accept(self):
|
||||
super().accept()
|
||||
for group in self.groups:
|
||||
channels.group_add(group, self.channel_name)
|
||||
for group in self.scope["user"].get_channels_groups():
|
||||
groups = self.scope["user"].get_channels_groups() + self.groups
|
||||
for group in groups:
|
||||
channels.group_add(group, self.channel_name)
|
||||
|
||||
def disconnect(self, close_code):
|
||||
groups = self.scope["user"].get_channels_groups() + self.groups
|
||||
for group in groups:
|
||||
channels.group_discard(group, self.channel_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue