0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-01 03:18:54 +01:00

modules/federation/send: Only accept edu's directly from the transmitter.

This commit is contained in:
Jason Volk 2018-09-06 06:00:21 -07:00
parent dcc18c693d
commit faf714335c

View file

@ -33,7 +33,7 @@ handle_edu(client &client,
const m::edu &edu) const m::edu &edu)
{ {
m::event event; 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<"origin_server_ts"_>(event) = at<"origin_server_ts"_>(request);
json::get<"content"_>(event) = at<"content"_>(edu); json::get<"content"_>(event) = at<"content"_>(edu);
json::get<"type"_>(event) = at<"edu_type"_>(edu); json::get<"type"_>(event) = at<"edu_type"_>(edu);