mirror of
https://github.com/matrix-construct/construct
synced 2024-12-25 15:04:10 +01:00
modules/federation: Fix the /event/ response.
This commit is contained in:
parent
d56cc60b88
commit
e8a7f0aeef
1 changed files with 9 additions and 1 deletions
|
@ -59,9 +59,17 @@ handle_get(client &client,
|
|||
m::get(event_id, buffer)
|
||||
};
|
||||
|
||||
const json::value pdu
|
||||
{
|
||||
event
|
||||
};
|
||||
|
||||
return resource::response
|
||||
{
|
||||
client, event
|
||||
client, json::members
|
||||
{
|
||||
{ "pdus", { &pdu, 1 } }
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue