Fix spelling.
Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>pull/5801/head
parent
02735e140f
commit
76a58fdcce
|
@ -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 New Issue