mirror of
https://github.com/matrix-construct/construct
synced 2024-10-31 19:08:59 +01:00
modules/federation/send: Only accept edu's directly from the transmitter.
This commit is contained in:
parent
dcc18c693d
commit
faf714335c
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ handle_edu(client &client,
|
|||
const m::edu &edu)
|
||||
{
|
||||
m::event event;
|
||||
json::get<"origin"_>(event) = at<"origin"_>(request);
|
||||
json::get<"origin"_>(event) = request.origin;
|
||||
json::get<"origin_server_ts"_>(event) = at<"origin_server_ts"_>(request);
|
||||
json::get<"content"_>(event) = at<"content"_>(edu);
|
||||
json::get<"type"_>(event) = at<"edu_type"_>(edu);
|
||||
|
|
Loading…
Reference in a new issue