diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2019-07-26 12:38:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-26 12:38:37 +0100 |
commit | 1a93daf35326a91cb14d66a2ae63cdaf603d4585 (patch) | |
tree | cb993edd2bbc5f03eb2e190d55fce9e4832619df /synapse/federation | |
parent | Convert RedactionTestCase to modern test style (#5768) (diff) | |
parent | Log when we receive a /make_* request from a different origin (diff) | |
download | synapse-1a93daf35326a91cb14d66a2ae63cdaf603d4585.tar.xz |
Merge pull request #5744 from matrix-org/erikj/log_leave_origin_mismatch
Log when we receive a /make_* request from a different origin
Diffstat (limited to 'synapse/federation')
-rw-r--r-- | synapse/federation/federation_server.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/federation/federation_server.py b/synapse/federation/federation_server.py index b4b9a05ca6..d216c46dfe 100644 --- a/synapse/federation/federation_server.py +++ b/synapse/federation/federation_server.py @@ -364,7 +364,7 @@ class FederationServer(FederationBase): logger.warn("Room version %s not in %s", room_version, supported_versions) raise IncompatibleRoomVersionError(room_version=room_version) - pdu = yield self.handler.on_make_join_request(room_id, user_id) + pdu = yield self.handler.on_make_join_request(origin, room_id, user_id) time_now = self._clock.time_msec() return {"event": pdu.get_pdu_json(time_now), "room_version": room_version} @@ -414,7 +414,7 @@ class FederationServer(FederationBase): def on_make_leave_request(self, origin, room_id, user_id): origin_host, _ = parse_server_name(origin) yield self.check_server_matches_acl(origin_host, room_id) - pdu = yield self.handler.on_make_leave_request(room_id, user_id) + pdu = yield self.handler.on_make_leave_request(origin, room_id, user_id) room_version = yield self.store.get_room_version(room_id) |