diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-02-03 19:18:17 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-02-03 19:18:17 +0900 |
commit | 15d8e2b7b5268cd9c7fc69826f905de80c82fa54 (patch) | |
tree | ce40e5097265a33b9bd5986bd13fe65a3fb8849a /jobs/downloadfilejob.cpp | |
parent | 23dc9a3259108f8e0c55e535b9341042f1ff77f5 (diff) | |
download | libquotient-15d8e2b7b5268cd9c7fc69826f905de80c82fa54.tar.gz libquotient-15d8e2b7b5268cd9c7fc69826f905de80c82fa54.zip |
DownloadFileJob, MediaThumbnailJob: augment generated makeRequestUrl() methods
Diffstat (limited to 'jobs/downloadfilejob.cpp')
-rw-r--r-- | jobs/downloadfilejob.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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<QFile> 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) |