From 653fc148d32f5241b26678f248c826057204f5b1 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 14 Sep 2019 14:21:01 -0700 Subject: [PATCH] ircd::m::fetch: Only check signature for v1 events. --- modules/m_fetch.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/m_fetch.cc b/modules/m_fetch.cc index 0a9651527..f6dc250a3 100644 --- a/modules/m_fetch.cc +++ b/modules/m_fetch.cc @@ -894,7 +894,8 @@ ircd::m::fetch::_check_event(const request &request, }; } - if(check_signature) + // only check signature for v1 events + if(check_signature && request.opts.event_id.version() == "1") { const string_view &server {