Changeset View
Changeset View
Standalone View
Standalone View
microblogs/twitter/twittermicroblog.cpp
Context not available. | |||||
495 | QUrl url = account->apiUrl(); | 495 | QUrl url = account->apiUrl(); | ||
---|---|---|---|---|---|
496 | url.setPath(url.path() + QStringLiteral("/statuses/show/%1.json").arg(post->postId)); | 496 | url.setPath(url.path() + QStringLiteral("/statuses/show/%1.json").arg(post->postId)); | ||
497 | 497 | | |||
498 | QUrl tmpUrl(url); | | |||
499 | QUrlQuery urlQuery; | 498 | QUrlQuery urlQuery; | ||
500 | urlQuery.addQueryItem(QLatin1String("tweet_mode"), QLatin1String("extended")); | 499 | urlQuery.addQueryItem(QLatin1String("tweet_mode"), QLatin1String("extended")); | ||
501 | url.setQuery(urlQuery); | 500 | url.setQuery(urlQuery); | ||
Context not available. | |||||
510 | } | 509 | } | ||
511 | job->addMetaData(QStringLiteral("customHTTPHeader"), | 510 | job->addMetaData(QStringLiteral("customHTTPHeader"), | ||
512 | QStringLiteral("Authorization: ") + | 511 | QStringLiteral("Authorization: ") + | ||
513 | QLatin1String(authorizationHeader(account, tmpUrl, QNetworkAccessManager::GetOperation))); | 512 | QLatin1String(authorizationHeader(account, url, QNetworkAccessManager::GetOperation))); | ||
514 | mFetchPostMap[ job ] = post; | 513 | mFetchPostMap[ job ] = post; | ||
515 | mJobsAccount[ job ] = theAccount; | 514 | mJobsAccount[ job ] = theAccount; | ||
516 | connect(job, &KIO::StoredTransferJob::result, this, &TwitterMicroBlog::slotFetchPost); | 515 | connect(job, &KIO::StoredTransferJob::result, this, &TwitterMicroBlog::slotFetchPost); | ||
Context not available. |