0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 00:32:35 +01:00

modules/client/profile: Simplify content access; fix unquoting.

This commit is contained in:
Jason Volk 2018-03-12 16:12:39 -07:00
parent 949a006950
commit dea86cd26e

View file

@ -240,10 +240,9 @@ put__profile(client &client,
request.parv[1]
};
const json::object &body{request.content};
const string_view &value
{
body.at(param)
unquote(request.at(param))
};
send(user_room, request.user_id, "ircd.profile", param,