mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-12-04 06:11:47 +00:00
feat: Move PDU validation out of parsing and into check 1
This commit is contained in:
5 files changed
+62
-41
No files matched your search
@@ -56,7 +56,11 @@ impl super::Service {
|
||||
continue;
|
||||
},
|
||||
};
|
||||
if let Err(e) = Self::pdu_format_check_1(&auth_pdu_json) {
|
||||
if let Err(e) = Self::pdu_format_check_1(
|
||||
&auth_pdu_json,
|
||||
room_version_rules,
|
||||
&create_event.event_id().to_owned(),
|
||||
) {
|
||||
// drop this PDU
|
||||
warn!(%auth_event_id, error=?e, "Dropping auth chain event as it violates the room event format");
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user