mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
modules/client/profile: Simplify content access; fix unquoting.
This commit is contained in:
parent
949a006950
commit
dea86cd26e
1 changed files with 1 additions and 2 deletions
|
@ -240,10 +240,9 @@ put__profile(client &client,
|
||||||
request.parv[1]
|
request.parv[1]
|
||||||
};
|
};
|
||||||
|
|
||||||
const json::object &body{request.content};
|
|
||||||
const string_view &value
|
const string_view &value
|
||||||
{
|
{
|
||||||
body.at(param)
|
unquote(request.at(param))
|
||||||
};
|
};
|
||||||
|
|
||||||
send(user_room, request.user_id, "ircd.profile", param,
|
send(user_room, request.user_id, "ircd.profile", param,
|
||||||
|
|
Loading…
Reference in a new issue