Update error to more plainly explain we can only authorize our own events (#15725)

This commit is contained in:
Eric Eastwood 2023-06-06 16:26:12 -05:00 committed by GitHub
parent 33c3550887
commit 4e6390cb10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changelog.d/15725.misc Normal file
View file

@ -0,0 +1 @@
Update federation error to more plainly explain we can only authorize our own membership events.

View file

@ -944,7 +944,7 @@ class FederationServer(FederationBase):
if not self._is_mine_server_name(authorising_server):
raise SynapseError(
400,
f"Cannot authorise request from resident server: {authorising_server}",
f"Cannot authorise membership event for {authorising_server}. We can only authorise requests from our own homeserver",
)
event.signatures.update(