Fix spelling.

Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
This commit is contained in:
Erik Johnston 2019-08-01 13:14:25 +01:00
parent 02735e140f
commit 76a58fdcce
2 changed files with 4 additions and 2 deletions

View file

@ -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.

View file

@ -111,7 +111,9 @@ class EventValidator(object):
raise SynapseError(400, "Content has no replacement_room key") raise SynapseError(400, "Content has no replacement_room key")
if event.content["replacement_room"] == event.room_id: 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): def _ensure_strings(self, d, keys):
for s in keys: for s in keys: