0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-30 04:38:52 +02:00

modules/federation/state_ids: Fix mislabeled name.

This commit is contained in:
Jason Volk 2019-04-24 17:19:14 -07:00
parent 5d97076008
commit ae85585454

View file

@ -81,20 +81,20 @@ get__state_ids(client &client,
json::stack::object top{out};
// auth_chain
if(request.query.get<bool>("auth_chain", true))
if(request.query.get<bool>("auth_chain_ids", true))
{
json::stack::array auth_chain
json::stack::array auth_chain_ids
{
top, "auth_chain"
top, "auth_chain_ids"
};
ac.for_each([&auth_chain]
ac.for_each([&auth_chain_ids]
(const m::event::idx &event_idx)
{
m::event_id(event_idx, std::nothrow, [&auth_chain]
m::event_id(event_idx, std::nothrow, [&auth_chain_ids]
(const auto &event_id)
{
auth_chain.append(event_id);
auth_chain_ids.append(event_id);
});
});
}