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:
parent
eb18ae9daf
commit
0c600eba94
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue