0
0
Fork 0
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:
Jason Volk 2019-03-06 18:17:46 -08:00
parent faf0914f23
commit 34561a5659

View file

@ -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);