From 2d8f137c6d40a0ed36aa81423a54fe6230388850 Mon Sep 17 00:00:00 2001 From: Felix Rohrbach Date: Thu, 8 Sep 2016 00:22:50 +0200 Subject: 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. --- jobs/mediathumbnailjob.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3