aboutsummaryrefslogtreecommitdiff
path: root/jobs
diff options
context:
space:
mode:
authorFelix Rohrbach <fxrh@gmx.de>2016-09-08 00:22:50 +0200
committerFelix Rohrbach <fxrh@gmx.de>2016-09-08 00:24:54 +0200
commit2d8f137c6d40a0ed36aa81423a54fe6230388850 (patch)
tree6ebd4833c06d5e006d515a3bb3ee3a0267217618 /jobs
parentc90e11df0164dc32a6d27cc887ca517af2277bc3 (diff)
downloadlibquotient-2d8f137c6d40a0ed36aa81423a54fe6230388850.tar.gz
libquotient-2d8f137c6d40a0ed36aa81423a54fe6230388850.zip
Fix MediaThumbnailJob
As the url-path seems to start with a slash, we had two slashes in the request. This broke the feature for some servers, especially when fetching icons from other servers.
Diffstat (limited to 'jobs')
-rw-r--r--jobs/mediathumbnailjob.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/jobs/mediathumbnailjob.cpp b/jobs/mediathumbnailjob.cpp
index 1e434fbc..8a5dc4ea 100644
--- a/jobs/mediathumbnailjob.cpp
+++ b/jobs/mediathumbnailjob.cpp
@@ -55,7 +55,7 @@ QPixmap MediaThumbnailJob::thumbnail()
QString MediaThumbnailJob::apiPath() const
{
- return QString("/_matrix/media/v1/thumbnail/%1/%2").arg(d->url.host()).arg(d->url.path());
+ return QString("/_matrix/media/v1/thumbnail/%1%2").arg(d->url.host()).arg(d->url.path());
}
QUrlQuery MediaThumbnailJob::query() const