mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
modules/console: Add raw option for fed head cmd.
This commit is contained in:
parent
655d56a849
commit
4f45571526
1 changed files with 7 additions and 1 deletions
|
@ -10717,7 +10717,7 @@ console_cmd__fed__head(opt &out, const string_view &line)
|
|||
{
|
||||
const params param{line, " ",
|
||||
{
|
||||
"room_id", "remote", "user_id"
|
||||
"room_id", "remote", "user_id", "op"
|
||||
}};
|
||||
|
||||
const auto &room_id
|
||||
|
@ -10751,6 +10751,12 @@ console_cmd__fed__head(opt &out, const string_view &line)
|
|||
request.in.content
|
||||
};
|
||||
|
||||
if(param["op"] == "raw")
|
||||
{
|
||||
out << proto << std::endl;
|
||||
return true;
|
||||
}
|
||||
|
||||
const json::object event
|
||||
{
|
||||
proto["event"]
|
||||
|
|
Loading…
Reference in a new issue