Review Request 121165: Fix "show older tweets"; use statuses/user_timeline instead of search/tweets; use follower list for DM's

Ian Schwarz m_105 at gmx.de
Fri Dec 12 20:16:42 UTC 2014



> On Dez. 12, 2014, 4:54 nachm., Andrea Scarpino wrote:
> > choqok/helperlibs/twitterapihelper/twitterapiaccount.cpp, line 210
> > <https://git.reviewboard.kde.org/r/121165/diff/2/?file=328995#file328995line210>
> >
> >     You didn't edit TwitterApiAccount::writeConfig() to store the followersList, and you don't read it value in the TwitterApiAccount constructor.

Should be fixed in the newer diff.


> On Dez. 12, 2014, 4:54 nachm., Andrea Scarpino wrote:
> > choqok/helperlibs/twitterapihelper/twitterapimicroblog.cpp, line 1482
> > <https://git.reviewboard.kde.org/r/121165/diff/2/?file=328999#file328999line1482>
> >
> >     Why parsing it twice? Use something like:
> >     QVariant foo = parser.parse(buffer, &ok);
> >     QVariantMap map = foo.toMap();
> >     QVariantList list = foo.toList();

Fixed in newer diff.


> On Dez. 12, 2014, 4:54 nachm., Andrea Scarpino wrote:
> > choqok/helperlibs/twitterapihelper/twitterapisearchtimelinewidget.cpp, line 153
> > <https://git.reviewboard.kde.org/r/121165/diff/2/?file=329003#file329003line153>
> >
> >     Remove this and any reference to pageNumber since it's no more used.

Removed it.


> On Dez. 12, 2014, 4:54 nachm., Andrea Scarpino wrote:
> > choqok/microblogs/twitter/twittersearch.cpp, line 238
> > <https://git.reviewboard.kde.org/r/121165/diff/2/?file=329009#file329009line238>
> >
> >     Again, you parse it twice here.

Fixed in newer diff.


> On Dez. 12, 2014, 4:54 nachm., Andrea Scarpino wrote:
> > choqok/microblogs/twitter/twittersearch.cpp, line 248
> > <https://git.reviewboard.kde.org/r/121165/diff/2/?file=329009#file329009line248>
> >
> >     I would use !list.isEmpty() instead of size().

Adjusted in newer diff.


> On Dez. 12, 2014, 4:54 nachm., Andrea Scarpino wrote:
> > choqok/microblogs/twitter/twittersearch.cpp, line 252
> > <https://git.reviewboard.kde.org/r/121165/diff/2/?file=329009#file329009line252>
> >
> >     You could use the foreach here:
> >     Q_FOREACH (const QVariant it, list)

TBH I just copied this bit, so I'm not touching it with a 10 ft. pole.


- Ian


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/121165/#review71886
-----------------------------------------------------------


On Nov. 17, 2014, 11:46 nachm., Ian Schwarz wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/121165/
> -----------------------------------------------------------
> 
> (Updated Nov. 17, 2014, 11:46 nachm.)
> 
> 
> Review request for Choqok.
> 
> 
> Repository: choqok
> 
> 
> Description
> -------
> 
> This patch does 3 things:
> 
> 1. It removes the old, stale "page browsing" that has not worked for the longest time. Instead, it introduces a button to "load more tweets" which actually works and loads older tweets. However as of now, you have to click it TWICE for the first time to work. After that, every addidtional click will retrieve more old tweets. They are shown on top of the newer ones which is quite unfortunate, I don't know how to change that. (see also https://bugs.kde.org/show_bug.cgi?id=340795)
> 
> 2. It introduces a "follower list", similar to the "friends list" for Twitter, which contains only followers' screen names. The reason for that is that on Twitter, you can only send DM's to your FOLLOWERS instead of your "friends" (i.e. people you have followed). The git version "allows" you to send them to the people you have followed which results in mute failure and no error message. We do still need the old friends list though so we can know whom we have followed (and thus whether to display the "follow" or the "unfollow" option).
> 
> 3. "Show all posts by $NAME" should not use the Twitter search/tweets API, as this API will only return tweets that are less than 7 days old. Instead, use statuses/user_timeline which returns up to 3,200 tweets of any age.
> 
> Let me state that I do not expect this patch to be accepted as is or even with minor changes. What I hope instead is that people who know more about C++/Qt/Choqok look at this and go "I see what you're trying to do, but there is a better way." and then actually propose a better way. I feel I have done as much as I could to enable Choqok to make progress towards a mostly working Twitter client for Linux.
> 
> Oh, and bumping the version to 1.4.0.1 or somesuch would be good sometime in the future. Maybe this way we can get distribution/packagers to ship a more functional version of Choqok in the future. The old 1.4.0 release is horribly broken by comparison.
> 
> 
> Diffs
> -----
> 
>   choqok/microblogs/twitter/twittersearch.cpp da85565 
>   choqok/microblogs/twitter/twitterpostwidget.cpp f8bf945 
>   choqok/microblogs/twitter/twittersearch.h 662e8d7 
>   choqok/helperlibs/twitterapihelper/twitterapisearch.cpp b3078c4 
>   choqok/helperlibs/twitterapihelper/twitterapisearchtimelinewidget.h ec40605 
>   choqok/helperlibs/twitterapihelper/twitterapisearchtimelinewidget.cpp 82dc1b1 
>   choqok/microblogs/laconica/laconicamicroblog.cpp dd86db2 
>   choqok/microblogs/laconica/laconicasearch.h 4bfac2d 
>   choqok/microblogs/laconica/laconicasearch.cpp 4b1c9c9 
>   choqok/helperlibs/twitterapihelper/twitterapidmessagedialog.cpp 70092db 
>   choqok/helperlibs/twitterapihelper/twitterapimicroblog.h b9dd97a 
>   choqok/helperlibs/twitterapihelper/twitterapimicroblog.cpp cb666cb 
>   choqok/helperlibs/twitterapihelper/twitterapisearch.h b421585 
>   choqok/helperlibs/twitterapihelper/twitterapiaccount.h d880f14 
>   choqok/helperlibs/twitterapihelper/twitterapiaccount.cpp e2efe97 
>   choqok/helperlibs/twitterapihelper/twitterapidmessagedialog.h ed36a1d 
> 
> Diff: https://git.reviewboard.kde.org/r/121165/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Ian Schwarz
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/choqok-devel/attachments/20141212/ffe8dfc1/attachment.html>


More information about the Choqok-devel mailing list