Project

General

Profile

Defect #273

getTimeline doesn't honor maxCount when showing retweets

Added by Robert Ivens about 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Start date:
04/23/2011
Due date:
% Done:

0%

Estimated time:
Browser (if web client):

Description

When getting the timeline with retweets I get twice the amount of the maxCount.

History

#1

Updated by Patrick Talbot about 13 years ago

  • Status changed from New to In Progress
#2

Updated by Patrick Talbot about 13 years ago

Cannot reproduce with 0.8.1 - please confirm

#3

Updated by Robert Ivens about 13 years ago

This one is really weird.

A maxCount from 1 till 14 give the correct result.
A maxCount of 15 gives 14 back (1 difference).
A maxCount of 16 gives 15 back (1 difference).
A maxCount of 17 gives 15 back (2 difference).
A maxCount of 18 gives 16 back (2 difference).
A maxCount of 19 gives 17 back (2 difference).
A maxCount of 20 gives 18 back (2 difference).
A maxCount of 21 gives 19 back (2 difference).
A maxCount of 22 gives 17 or 37 back (5 or 17 difference).
A maxCount of 23 gives 18 or 21 back (5 or 2 difference).

Etc...

#4

Updated by Robert Ivens about 13 years ago

It looks like this is only an issue with getAccountTimeLine().
All the other functions seem to give back the proper amount of tweets.

#5

Updated by Patrick Talbot about 13 years ago

I cannot tell you how inconsistent the calls to /friends_timeline and /home_timeline are!

There are a couple issues open on the Twitter bug tracker, I think this is actually even worse than what is reported here:
http://code.google.com/p/twitter-api/issues/detail?id=2016
http://code.google.com/p/twitter-api/issues/detail?id=1656
http://code.google.com/p/twitter-api/issues/detail?id=1430
http://code.google.com/p/twitter-api/issues/detail?id=412
http://code.google.com/p/twitter-api/issues/detail?id=1735
http://code.google.com/p/twitter-api/issues/detail?id=2037

I'm trying to workaround that and have managed to get a correct count, but sometimes the tweets themselves are not the one expected!

#6

Updated by Patrick Talbot about 13 years ago

v0.8.3 now returns a consistent number of tweets.
Make sure to update the /plugins/twitter/jtwitter.jar that I have slightly changed for this.

Still the tweets themselves are not consistently returned, and I suspect this has more to do with the Twitter API bugs than a problem in the lib or the plugin...

#7

Updated by Robert Ivens about 13 years ago

- getReplies seems to toggle between no result and my 6 tweets.
- yes the maxCount seems to be a 'suggestion' for twitter it seems.

#8

Updated by Patrick Talbot about 13 years ago

Seems fixed to me with 0.8.4 - please confirm

#9

Updated by Robert Ivens about 13 years ago

  • Status changed from In Progress to Closed

Works for me now.

Also available in: Atom PDF