diff options
author | Luke Barnard <luke@matrix.org> | 2018-04-05 14:07:16 +0100 |
---|---|---|
committer | Luke Barnard <luke@matrix.org> | 2018-04-05 14:07:16 +0100 |
commit | 104c0bc1d5d1f2a487c50d63b22caa477b091976 (patch) | |
tree | c9fc64eca920ae4221efd0838c043e4956f7391f /synapse/federation | |
parent | Use DEFAULT join_policy of "invite" in db (diff) | |
download | synapse-104c0bc1d5d1f2a487c50d63b22caa477b091976.tar.xz |
Use "/settings/" (plural)
Diffstat (limited to 'synapse/federation')
-rw-r--r-- | synapse/federation/transport/client.py | 2 | ||||
-rw-r--r-- | synapse/federation/transport/server.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/synapse/federation/transport/client.py b/synapse/federation/transport/client.py index 0f7f656824..1fe162d55b 100644 --- a/synapse/federation/transport/client.py +++ b/synapse/federation/transport/client.py @@ -862,7 +862,7 @@ class TransportLayerClient(object): content): """Sets the join policy for a group """ - path = PREFIX + "/groups/%s/setting/m.join_policy" % (group_id,) + path = PREFIX + "/groups/%s/settings/m.join_policy" % (group_id,) return self.client.post_json( destination=destination, diff --git a/synapse/federation/transport/server.py b/synapse/federation/transport/server.py index a52d3948f4..3658ca75f3 100644 --- a/synapse/federation/transport/server.py +++ b/synapse/federation/transport/server.py @@ -1128,7 +1128,7 @@ class FederationGroupsBulkPublicisedServlet(BaseFederationServlet): class FederationGroupsSettingJoinPolicyServlet(BaseFederationServlet): """Sets whether a group is joinable without an invite or knock """ - PATH = "/groups/(?P<group_id>[^/]*)/setting/m.join_policy$" + PATH = "/groups/(?P<group_id>[^/]*)/settings/m.join_policy$" @defer.inlineCallbacks def on_POST(self, origin, content, query, group_id): |