0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

ircd:Ⓜ️:event::apend: Skip the redacted query if event is room head.

This commit is contained in:
Jason Volk 2019-09-17 19:09:02 -07:00
parent e94a21aa7d
commit 5bf60df98b

View file

@ -140,7 +140,10 @@ ircd::m::event::append::append(json::stack::object &object,
const bool query_redacted
{
has_event_idx && opts.query_redacted && !is_state
has_event_idx &&
opts.query_redacted &&
!is_state &&
(!opts.room_depth || *opts.room_depth > json::get<"depth"_>(event))
};
if(query_redacted && m::redacted(*opts.event_idx))