summary refs log tree commit diff
path: root/synapse/events/validator.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-08-01 13:14:25 +0100
committerErik Johnston <erik@matrix.org>2019-08-01 13:17:55 +0100
commit76a58fdcced5d152efee48f69b6ab658e0e6cbc5 (patch)
tree75599a2964f439414695a98de56ef4d786b441c5 /synapse/events/validator.py
parentNewsfile (diff)
downloadsynapse-76a58fdcced5d152efee48f69b6ab658e0e6cbc5.tar.xz
Fix spelling.
Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
Diffstat (limited to 'synapse/events/validator.py')
-rw-r--r--synapse/events/validator.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/events/validator.py b/synapse/events/validator.py
index 29f99361c0..6374dd067d 100644
--- a/synapse/events/validator.py
+++ b/synapse/events/validator.py
@@ -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: