0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-04 17:48:35 +02:00

modules/console: Add a raw argument to fed auth cmd.

This commit is contained in:
Jason Volk 2019-08-29 21:31:26 -07:00
parent aec2074eb1
commit 3cdedc0030

View file

@ -12954,6 +12954,14 @@ console_cmd__fed__auth(opt &out, const string_view &line)
return true;
}
if(param["ids_only"] == "raw")
{
for(const string_view &event : auth_chain)
out << event << std::endl;
return true;
}
std::vector<m::event> events(size(auth_chain));
std::transform(begin(auth_chain), end(auth_chain), begin(events), []
(const json::object &event) -> m::event