From 0ce44dbd41efc68b7a0cc8e50c0c8d9989b800b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Thu, 4 May 2017 22:58:22 +0200 Subject: GH-1864 fix imgur album creation --- api/logic/screenshots/ImgurAlbumCreation.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'api/logic/screenshots/ImgurAlbumCreation.cpp') diff --git a/api/logic/screenshots/ImgurAlbumCreation.cpp b/api/logic/screenshots/ImgurAlbumCreation.cpp index a6964681..3724e3df 100644 --- a/api/logic/screenshots/ImgurAlbumCreation.cpp +++ b/api/logic/screenshots/ImgurAlbumCreation.cpp @@ -25,13 +25,13 @@ void ImgurAlbumCreation::start() request.setRawHeader("Authorization", "Client-ID 5b97b0713fba4a3"); request.setRawHeader("Accept", "application/json"); - QStringList ids; + QStringList hashes; for (auto shot : m_screenshots) { - ids.append(shot->m_imgurId); + hashes.append(shot->m_imgurDeleteHash); } - const QByteArray data = "ids=" + ids.join(',').toUtf8() + "&title=Minecraft%20Screenshots&privacy=hidden"; + const QByteArray data = "deletehashes=" + hashes.join(',').toUtf8() + "&title=Minecraft%20Screenshots&privacy=hidden"; QNetworkReply *rep = ENV.qnam().post(request, data); -- cgit v1.2.3