0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-26 18:38:52 +02:00

ircd:Ⓜ️ Move signatures field nulling to essential keys function.

This commit is contained in:
Jason Volk 2018-05-15 19:52:37 -07:00
parent b2b5d6abce
commit 7e512eecdc

View file

@ -910,8 +910,6 @@ ircd::m::verify(const event &event_,
essential(event_, content)
};
json::get<"signatures"_>(event) = {};
thread_local char buf[64_KiB];
const json::object &preimage
{
@ -1117,6 +1115,7 @@ ircd::m::essential(m::event event,
content = "{}"_sv;
}
json::get<"signatures"_>(event) = {};
return event;
}