mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-15 20:23:51 +01:00
Use "/settings/" (plural)
This commit is contained in:
parent
700e5e7198
commit
104c0bc1d5
3 changed files with 3 additions and 3 deletions
|
@ -862,7 +862,7 @@ class TransportLayerClient(object):
|
||||||
content):
|
content):
|
||||||
"""Sets the join policy for a group
|
"""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(
|
return self.client.post_json(
|
||||||
destination=destination,
|
destination=destination,
|
||||||
|
|
|
@ -1128,7 +1128,7 @@ class FederationGroupsBulkPublicisedServlet(BaseFederationServlet):
|
||||||
class FederationGroupsSettingJoinPolicyServlet(BaseFederationServlet):
|
class FederationGroupsSettingJoinPolicyServlet(BaseFederationServlet):
|
||||||
"""Sets whether a group is joinable without an invite or knock
|
"""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
|
@defer.inlineCallbacks
|
||||||
def on_POST(self, origin, content, query, group_id):
|
def on_POST(self, origin, content, query, group_id):
|
||||||
|
|
|
@ -405,7 +405,7 @@ class GroupInvitedUsersServlet(RestServlet):
|
||||||
class GroupSettingJoinPolicyServlet(RestServlet):
|
class GroupSettingJoinPolicyServlet(RestServlet):
|
||||||
"""Set group join policy
|
"""Set group join policy
|
||||||
"""
|
"""
|
||||||
PATTERNS = client_v2_patterns("/groups/(?P<group_id>[^/]*)/setting/m.join_policy$")
|
PATTERNS = client_v2_patterns("/groups/(?P<group_id>[^/]*)/settings/m.join_policy$")
|
||||||
|
|
||||||
def __init__(self, hs):
|
def __init__(self, hs):
|
||||||
super(GroupSettingJoinPolicyServlet, self).__init__()
|
super(GroupSettingJoinPolicyServlet, self).__init__()
|
||||||
|
|
Loading…
Reference in a new issue