mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-19 09:31:35 +03:00
Fix spelling & add experimental API comment
This commit is contained in:
parent
6554253f48
commit
643c89d497
2 changed files with 3 additions and 2 deletions
|
@ -47,6 +47,7 @@ class UserDirectoryConfig(Config):
|
|||
# search_all_users: false
|
||||
#
|
||||
# If this is set, user search will be delegated to this ID server instead
|
||||
# of synapse performing the saerch itself.
|
||||
# of synapse performing the search itself.
|
||||
# This is an experimental API.
|
||||
# defer_to_id_server: id.example.com
|
||||
"""
|
||||
|
|
|
@ -64,7 +64,7 @@ class UserDirectorySearchRestServlet(RestServlet):
|
|||
|
||||
if self.hs.config.user_directory_defer_to_id_server:
|
||||
signed_body = sign_json(body, self.hs.hostname, self.hs.config.signing_key[0])
|
||||
url = "https://%s/_matrix/identity/api/v1/user_directory/search" % (
|
||||
url = "http://%s/_matrix/identity/api/v1/user_directory/search" % (
|
||||
self.hs.config.user_directory_defer_to_id_server,
|
||||
)
|
||||
resp = yield self.http_client.post_json_get_json(url, signed_body)
|
||||
|
|
Loading…
Reference in a new issue