From 15d8e2b7b5268cd9c7fc69826f905de80c82fa54 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sat, 3 Feb 2018 19:18:17 +0900 Subject: DownloadFileJob, MediaThumbnailJob: augment generated makeRequestUrl() methods --- jobs/downloadfilejob.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'jobs/downloadfilejob.cpp') diff --git a/jobs/downloadfilejob.cpp b/jobs/downloadfilejob.cpp index 06fa3b48..07d14197 100644 --- a/jobs/downloadfilejob.cpp +++ b/jobs/downloadfilejob.cpp @@ -20,6 +20,11 @@ class DownloadFileJob::Private QScopedPointer tempFile; }; +QUrl DownloadFileJob::makeRequestUrl(QUrl baseUrl, const QUrl& mxcUri) +{ + return makeRequestUrl(baseUrl, mxcUri.authority(), mxcUri.path().mid(1)); +} + DownloadFileJob::DownloadFileJob(const QString& serverName, const QString& mediaId, const QString& localFilename) -- cgit v1.2.3