mirror of
https://github.com/matrix-construct/construct
synced 2024-12-30 17:34:04 +01:00
ircd:Ⓜ️ Fix pretty(event) format when lacking a digest.
This commit is contained in:
parent
4958170e4b
commit
9af1e5af4e
1 changed files with 10 additions and 4 deletions
|
@ -303,8 +303,11 @@ ircd::m::pretty(std::ostream &s,
|
||||||
<< " :" << event_id;
|
<< " :" << event_id;
|
||||||
|
|
||||||
for(const auto &[algorithm, digest] : ref_hash)
|
for(const auto &[algorithm, digest] : ref_hash)
|
||||||
s << " " << unquote(algorithm)
|
{
|
||||||
<< ": " << unquote(digest);
|
s << " " << unquote(algorithm);
|
||||||
|
if(digest)
|
||||||
|
s << ": " << unquote(digest);
|
||||||
|
}
|
||||||
|
|
||||||
s << std::endl;
|
s << std::endl;
|
||||||
}
|
}
|
||||||
|
@ -320,8 +323,11 @@ ircd::m::pretty(std::ostream &s,
|
||||||
<< " :" << event_id;
|
<< " :" << event_id;
|
||||||
|
|
||||||
for(const auto &[algorithm, digest] : ref_hash)
|
for(const auto &[algorithm, digest] : ref_hash)
|
||||||
s << " " << unquote(algorithm)
|
{
|
||||||
<< ": " << unquote(digest);
|
s << " " << unquote(algorithm);
|
||||||
|
if(digest)
|
||||||
|
s << ": " << unquote(digest);
|
||||||
|
}
|
||||||
|
|
||||||
s << std::endl;
|
s << std::endl;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue