aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/report_content.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-06-09 22:53:29 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-06-09 22:53:29 +0900
commit46801080846d58ab1528e921bebcb14e651f7956 (patch)
tree13fadd0e947a184bc7cef77c5c0867bf404bfe0b /lib/csapi/report_content.cpp
parent6767cb8eccea7b74531f59f165a28afa0bec61f4 (diff)
downloadlibquotient-46801080846d58ab1528e921bebcb14e651f7956.tar.gz
libquotient-46801080846d58ab1528e921bebcb14e651f7956.zip
csapi: Now really fix passing query parameters
Also: GetContentThumbnailJob (again) requires width and height.
Diffstat (limited to 'lib/csapi/report_content.cpp')
-rw-r--r--lib/csapi/report_content.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/csapi/report_content.cpp b/lib/csapi/report_content.cpp
index 9d19e012..f1a1d6f2 100644
--- a/lib/csapi/report_content.cpp
+++ b/lib/csapi/report_content.cpp
@@ -17,8 +17,8 @@ ReportContentJob::ReportContentJob(const QString& roomId, const QString& eventId
basePath % "/rooms/" % roomId % "/report/" % eventId)
{
QJsonObject _data;
- addToJson<>(_data, "score", score);
- addToJson<>(_data, "reason", reason);
+ addParam<>(_data, "score", score);
+ addParam<>(_data, "reason", reason);
setRequestData(_data);
}