Update error to more plainly explain we can only authorize our own events (#15725)
This commit is contained in:
parent
33c3550887
commit
4e6390cb10
|
@ -0,0 +1 @@
|
||||||
|
Update federation error to more plainly explain we can only authorize our own membership events.
|
|
@ -944,7 +944,7 @@ class FederationServer(FederationBase):
|
||||||
if not self._is_mine_server_name(authorising_server):
|
if not self._is_mine_server_name(authorising_server):
|
||||||
raise SynapseError(
|
raise SynapseError(
|
||||||
400,
|
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(
|
event.signatures.update(
|
||||||
|
|
Loading…
Reference in New Issue