summary refs log tree commit diff
path: root/synapse/module_api
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-12-31 16:20:32 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-12-31 16:20:32 +0000
commit1077d50c655303194698f01bd84668a3ab4ef865 (patch)
treedf706e382441fc8135a2af5d902b293018570c69 /synapse/module_api
parentMerge commit 'acfe3b306' into anoa/dinsic_release_1_23_1 (diff)
downloadsynapse-1077d50c655303194698f01bd84668a3ab4ef865.tar.xz
Merged commit 'deff8f628' into anoa/dinsic_release_1_23_1
Diffstat (limited to 'synapse/module_api')
-rw-r--r--synapse/module_api/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/module_api/__init__.py b/synapse/module_api/__init__.py

index 0142542852..72ab5750cc 100644 --- a/synapse/module_api/__init__.py +++ b/synapse/module_api/__init__.py
@@ -49,6 +49,7 @@ class ModuleApi: self._store = hs.get_datastore() self._auth = hs.get_auth() self._auth_handler = auth_handler + self._server_name = hs.hostname # We expose these as properties below in order to attach a helpful docstring. self._http_client = hs.get_simple_http_client() # type: SimpleHttpClient @@ -336,7 +337,9 @@ class ModuleApi: SynapseError if the event was not allowed. """ # Create a requester object - requester = create_requester(event_dict["sender"]) + requester = create_requester( + event_dict["sender"], authenticated_entity=self._server_name + ) # Create and send the event (