From: "Andreas HAttel (dilfridge)" <dilfridge@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in net-im/choqok/files: choqok-1.1-twitter.patch
Date: Fri, 23 Sep 2011 21:39:42 +0000 (UTC) [thread overview]
Message-ID: <20110923213942.2FB4B20035@flycatcher.gentoo.org> (raw)
dilfridge 11/09/23 21:39:42
Added: choqok-1.1-twitter.patch
Log:
Fix twitter authentication, bug 383307
(Portage version: 2.1.10.19/cvs/Linux x86_64)
Revision Changes Path
1.1 net-im/choqok/files/choqok-1.1-twitter.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/choqok/files/choqok-1.1-twitter.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/choqok/files/choqok-1.1-twitter.patch?rev=1.1&content-type=text/plain
Index: choqok-1.1-twitter.patch
===================================================================
commit 9053b699c33d998d3933a6c11e4ff624846620e5
Author: Mehrdad Momeny <mehrdad.momeny@gmail.com>
Date: Sun Jul 24 11:30:49 2011 +0800
BUG:275185 Get user friends list bug fixed
diff --git a/helperlibs/twitterapihelper/twitterapimicroblog.cpp b/helperlibs/twitterapihelper/twitterapimicroblog.cpp
index 1efbb1f..1a87d61 100644
--- a/helperlibs/twitterapihelper/twitterapimicroblog.cpp
+++ b/helperlibs/twitterapihelper/twitterapimicroblog.cpp
@@ -681,14 +681,18 @@ void TwitterApiMicroBlog::requestFriendsScreenName(TwitterApiAccount* theAccount
TwitterApiAccount* account = qobject_cast<TwitterApiAccount*>(theAccount);
KUrl url = account->apiUrl();
url.addPath( QString("/statuses/friends.xml") );
+ KUrl tmpUrl(url);
url.addQueryItem( "cursor", d->friendsCursor );
+ QOAuth::ParamMap params;
+ params.insert("cursor", d->friendsCursor.toLatin1());
KIO::StoredTransferJob *job = KIO::storedGet( url, KIO::Reload, KIO::HideProgressInfo ) ;
if ( !job ) {
kDebug() << "Cannot create an http GET request!";
return;
}
- job->addMetaData("customHTTPHeader", "Authorization: " + authorizationHeader(account, url, QOAuth::GET));
+ job->addMetaData("customHTTPHeader", "Authorization: " + authorizationHeader(account, tmpUrl,
+ QOAuth::GET, params));
mJobsAccount[job] = theAccount;
connect( job, SIGNAL( result( KJob* ) ), this, SLOT( slotRequestFriendsScreenName(KJob*) ) );
job->start();
next reply other threads:[~2011-09-23 21:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-23 21:39 Andreas HAttel (dilfridge) [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-01-17 0:09 [gentoo-commits] gentoo-x86 commit in net-im/choqok/files: choqok-1.1-twitter.patch Johannes Huber (johu)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110923213942.2FB4B20035@flycatcher.gentoo.org \
--to=dilfridge@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox