From 46801080846d58ab1528e921bebcb14e651f7956 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sat, 9 Jun 2018 22:53:29 +0900 Subject: csapi: Now really fix passing query parameters Also: GetContentThumbnailJob (again) requires width and height. --- lib/csapi/report_content.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/csapi/report_content.cpp') 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); } -- cgit v1.2.3