Support » Plugin: Good Old Twitter Feed Widget » Incorrect number of tweets

  • Resolved encirclesupport

    (@encirclesupport)


    We are seeing an incorrect number of tweets on this site. Atm if we configure the widget to show 8 tweets, it shows 1 tweet if we configure the number of tweets to 9 – it shows 4 tweets. We have deselected the show re-tweets and show replies. The twitter account has a large number of re-tweets in front of the first tweet. I believe this to be some offset problem. It could be the widget itself or it could be the twitter api. It’s almost like the number of tweets it calculates to fetch in one request doesn’t include all the actual user tweets because of the high number of re-tweets.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • encirclesupport

    (@encirclesupport)

    I’ve found the line of code that is problematic:

    good_old_twitter_widget.php:

    Line 340

       if ($options['skip_text']!='' || $options['skip_replies'] || $options['skip_retweets']) {
          $max_items_to_retrieve *= 4;
        }

    So it’s a fair guess that 4* the number of tweets will cover all actual tweets. However this assumption doesn’t hold if there are a high number of retweets. Suggest implementing ‘retry until all tweets are counted in logic loop’ perhaps?

    Plugin Author whiletrue

    (@whiletrue)

    Hi encirclesupport,
    thanks for your accurate feedback.

    Waiting for spare time for a cleaner fix, I uploaded a quick update (1.0.7 plugin release), doubling again the number of retrieved tweets.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Incorrect number of tweets’ is closed to new replies.