0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-25 15:04:10 +01:00

ircd:Ⓜ️:vm: Fix cases incorrectly removing signatures prior to verify stage.

This commit is contained in:
Jason Volk 2020-12-21 10:26:59 -08:00
parent eb18ae9daf
commit 0c600eba94
2 changed files with 3 additions and 3 deletions

View file

@ -778,7 +778,7 @@ catch(const json::not_found &e)
ircd::m::event
ircd::m::essential(m::event event,
const mutable_buffer &contentbuf.
const mutable_buffer &contentbuf,
const bool &sigs)
try
{

View file

@ -400,11 +400,11 @@ try
// Canonize and redact from some other serialized source.
!opts.edu && !opts.json_source && event.source?
json::stringify(mutable_buffer{eval.buf}, m::essential(event.source, event::buf[0])):
json::stringify(mutable_buffer{eval.buf}, m::essential(event.source, event::buf[0], true)):
// Canonize and redact from no source.
!opts.edu && !opts.json_source?
json::stringify(mutable_buffer{eval.buf}, m::essential(event, event::buf[0])):
json::stringify(mutable_buffer{eval.buf}, m::essential(event, event::buf[0], true)):
// Use the input directly.
string_view{event.source}