Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Change so that update group room visibility isn't an upsert #2651

Merged
merged 3 commits into from
Nov 9, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions synapse/federation/transport/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,8 +706,10 @@ def on_DELETE(self, origin, content, query, group_id, room_id):
class FederationGroupsAddRoomsConfigServlet(BaseFederationServlet):
"""Update room config in group
"""
PATH = "/groups/(?P<group_id>[^/]*)/room/(?P<room_id>[^/]*)"
"/config/(?P<config_key>[^/]*)$"
PATH = (
"/groups/(?P<group_id>[^/]*)/room/(?P<room_id>[^/]*)"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no comma?...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oo spooky python string concatenation

"/config/(?P<config_key>[^/]*)$"
)

@defer.inlineCallbacks
def on_POST(self, origin, content, query, group_id, room_id, config_key):
Expand Down