mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 08:42:34 +01:00
modules/console: Fix path traverse regression.
This commit is contained in:
parent
298750125a
commit
2574ea72a5
1 changed files with 8 additions and 3 deletions
|
@ -9290,13 +9290,18 @@ console_cmd__fed__head(opt &out, const string_view &line)
|
|||
request.in.content
|
||||
};
|
||||
|
||||
const json::object event
|
||||
{
|
||||
proto["event"]
|
||||
};
|
||||
|
||||
out << "DEPTH "
|
||||
<< proto.get({"event", "depth"})
|
||||
<< event["depth"]
|
||||
<< std::endl;
|
||||
|
||||
const json::array &prev_events
|
||||
{
|
||||
proto.get({"event", "prev_events"})
|
||||
event["prev_events"]
|
||||
};
|
||||
|
||||
for(const json::array &prev_event : prev_events)
|
||||
|
@ -9314,7 +9319,7 @@ console_cmd__fed__head(opt &out, const string_view &line)
|
|||
|
||||
const json::array &auth_events
|
||||
{
|
||||
proto.get({"event", "auth_events"})
|
||||
event["auth_events"]
|
||||
};
|
||||
|
||||
for(const json::array &auth_event : auth_events)
|
||||
|
|
Loading…
Reference in a new issue