I realized that my daily twitter blog entries simply showed the last 20 entires, regardless of date. Essentially they were listing all of the entries on the first page of the RSS feed regardless of what was passed in the since variable. I looked at twitter's API and could find no since REST var, so I'm not certain if it is simply no longer around.

I altered the if statement on line 125 to reflect this:

if ($created_time > $end || $created_time < $start) {

That makes it so that (while there may be older items in the RSS feed) it ignores anything older than the beginning of yesterday and does not add it to the blog post.

This made me realize that if a person is a prolific twitterer, with more than 20 posts a day it won't get the first ones and it should probably keep going back through the pages until it finds a date older than yesterday midnight.

Comments

hunterjones’s picture

Category: bug » feature
Priority: Normal » Minor
Status: Active » Needs review

I really don't know anything about php, but I tried the above line and no blog posts,
I tried some other time modifications but still can't get the desired result.

With this
if ($created_time > $end || $created_time < $start) {
I don't get any blog posts.

jadestorm’s picture

Well for what it's worth, I intend to rework the way I'm handling that entirely. There's too much room for "missing stuff" in the way I'm doing it now. =/

soyarma’s picture

Hey jadestorm, let me know if you want someone to test it out. I may take a stab at it in a week or so as well, I'll let you know if I do.

slavikt’s picture

Is there any progress on this issue?

jadestorm’s picture

So far I haven't actually been able to reproduce it happening, so I don't have a good way to test if it's "fixed". I take it you are seeing the same thing?

jadestorm’s picture

Assigned: Unassigned » jadestorm
Category: feature » bug
Priority: Minor » Critical
Status: Needs review » Active

Hey as an update, I'm seeing that myself nowadays... the last three tweets I've done are showing up every day. I'm not sure if something has changed in drupal since I wrote this, or what the deal is, but clearly something is amiss =(

jadestorm’s picture

Status: Active » Closed (fixed)

This is fixed in trunk now!