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:
parent
aec2074eb1
commit
3cdedc0030
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue