[choqok] fix bug on friendlist update (rhbz #729464)
Sven Lankes
slankes at fedoraproject.org
Tue Aug 9 21:18:59 UTC 2011
commit 6c3d4d7c9478e5f9e3e9b94184ef07d70bff36dc
Author: Sven Lankes <sven at lank.es>
Date: Tue Aug 9 23:18:14 2011 +0200
fix bug on friendlist update (rhbz #729464)
choqok-1.1-fixfriendlist.diff | 30 ++++++++++++++++++++++++++++++
choqok.spec | 7 ++++++-
2 files changed, 36 insertions(+), 1 deletions(-)
---
diff --git a/choqok-1.1-fixfriendlist.diff b/choqok-1.1-fixfriendlist.diff
new file mode 100644
index 0000000..823bfef
--- /dev/null
+++ b/choqok-1.1-fixfriendlist.diff
@@ -0,0 +1,30 @@
+commit 9053b699c33d998d3933a6c11e4ff624846620e5
+Author: Mehrdad Momeny <mehrdad.momeny at 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();
diff --git a/choqok.spec b/choqok.spec
index efdc039..15a7cb4 100644
--- a/choqok.spec
+++ b/choqok.spec
@@ -1,11 +1,12 @@
Summary: KDE Micro-Blogging Client
Name: choqok
Version: 1.1
-Release: 3%{?dist}
+Release: 4%{?dist}
License: GPLv3
Group: Applications/Internet
URL: http://choqok.gnufolks.org/
Source: http://d10xg45o6p6dbl.cloudfront.net/projects/c/%{name}/%{name}-%{version}.tar.bz2
+Patch0: choqok-1.1-fixfriendlist.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -42,6 +43,7 @@ Requires: kdelibs4-devel
%prep
%setup -q
+%patch0 -p1
%build
mkdir -p %{_target_platform}
@@ -106,6 +108,9 @@ gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || :
%{_kde4_appsdir}/cmake/modules/*.cmake
%changelog
+* Tue Aug 09 2011 Sven Lankes <sven at lank.es> - 1.1-4
+- fix bug on friendlist update (rhbz #729464)
+
* Tue Jul 26 2011 Rex Dieter <rdieter at fedoraproject.org> 1.1-3
- drop kwebkitpart support
More information about the scm-commits
mailing list