forked from MirrorHub/synapse
Fix spelling.
Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
This commit is contained in:
parent
02735e140f
commit
76a58fdcce
2 changed files with 4 additions and 2 deletions
|
@ -1 +1 @@
|
|||
Don't allow clients to send tombstone events that reference the room its sent in.
|
||||
Don't allow clients to send tombstone events that reference the room it's sent in.
|
||||
|
|
|
@ -111,7 +111,9 @@ class EventValidator(object):
|
|||
raise SynapseError(400, "Content has no replacement_room key")
|
||||
|
||||
if event.content["replacement_room"] == event.room_id:
|
||||
raise SynapseError(400, "Tombstone cannot reference itself")
|
||||
raise SynapseError(
|
||||
400, "Tombstone cannot reference the room it was sent in"
|
||||
)
|
||||
|
||||
def _ensure_strings(self, d, keys):
|
||||
for s in keys:
|
||||
|
|
Loading…
Reference in a new issue