mirror of
https://github.com/matrix-construct/construct
synced 2024-12-28 16:34:13 +01:00
modules/client/profile: Fix JSON string type assumption for profile values.
This commit is contained in:
parent
faf0914f23
commit
34561a5659
1 changed files with 3 additions and 3 deletions
|
@ -110,7 +110,7 @@ put__profile(client &client,
|
||||||
|
|
||||||
const string_view &value
|
const string_view &value
|
||||||
{
|
{
|
||||||
unquote(request.at(param))
|
request.at(param)
|
||||||
};
|
};
|
||||||
|
|
||||||
const m::user::profile profile
|
const m::user::profile profile
|
||||||
|
@ -366,7 +366,7 @@ ircd::m::user::profile::get(std::nothrow_t,
|
||||||
{
|
{
|
||||||
const string_view &value
|
const string_view &value
|
||||||
{
|
{
|
||||||
unquote(content.get("text"))
|
content.get("text")
|
||||||
};
|
};
|
||||||
|
|
||||||
closure(key, value);
|
closure(key, value);
|
||||||
|
@ -399,7 +399,7 @@ ircd::m::user::profile::for_each(const m::user &user,
|
||||||
|
|
||||||
const string_view &value
|
const string_view &value
|
||||||
{
|
{
|
||||||
unquote(json::get<"content"_>(event).get("text"))
|
json::get<"content"_>(event).get("text")
|
||||||
};
|
};
|
||||||
|
|
||||||
return closure(key, value);
|
return closure(key, value);
|
||||||
|
|
Loading…
Reference in a new issue