summary refs log tree commit diff
path: root/synapse/events
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/events')
-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 0cf2b9ba42..272426e105 100644
--- a/synapse/events/validator.py
+++ b/synapse/events/validator.py
@@ -112,7 +112,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"
+                )
 
             self._ensure_state_event(event)