aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/profile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/profile.cpp')
-rw-r--r--lib/csapi/profile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/csapi/profile.cpp b/lib/csapi/profile.cpp
index 6b93d961..b08eb970 100644
--- a/lib/csapi/profile.cpp
+++ b/lib/csapi/profile.cpp
@@ -17,7 +17,7 @@ SetDisplayNameJob::SetDisplayNameJob(const QString& userId, const QString& displ
basePath % "/profile/" % userId % "/displayname")
{
QJsonObject _data;
- addToJson<IfNotEmpty>(_data, "displayname", displayname);
+ addParam<IfNotEmpty>(_data, "displayname", displayname);
setRequestData(_data);
}
@@ -59,7 +59,7 @@ SetAvatarUrlJob::SetAvatarUrlJob(const QString& userId, const QString& avatarUrl
basePath % "/profile/" % userId % "/avatar_url")
{
QJsonObject _data;
- addToJson<IfNotEmpty>(_data, "avatar_url", avatarUrl);
+ addParam<IfNotEmpty>(_data, "avatar_url", avatarUrl);
setRequestData(_data);
}