diff options
author | Richard van der Hoff <richard@matrix.org> | 2022-06-13 11:34:59 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2022-06-13 11:34:59 +0100 |
commit | f68b5e5773a9e74c0f895190aaedce41f8565fa7 (patch) | |
tree | 0601c8b98bc68e25e7466cd220d8034cac29f27f /synapse/events/validator.py | |
parent | Revert "Changelog" (diff) | |
parent | changelog (diff) | |
download | synapse-f68b5e5773a9e74c0f895190aaedce41f8565fa7.tar.xz |
Merge branch 'rav/simplify_event_auth_interface' into develop
Diffstat (limited to 'synapse/events/validator.py')
-rw-r--r-- | synapse/events/validator.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/events/validator.py b/synapse/events/validator.py index 29fa9b3880..27c8beba25 100644 --- a/synapse/events/validator.py +++ b/synapse/events/validator.py @@ -35,6 +35,10 @@ class EventValidator: def validate_new(self, event: EventBase, config: HomeServerConfig) -> None: """Validates the event has roughly the right format + Suitable for checking a locally-created event. It has stricter checks than + is appropriate for an event received over federation (for which, see + event_auth.validate_event_for_room_version) + Args: event: The event to validate. config: The homeserver's configuration. |