graulund/tweetnest — pull request #41 by teranex (2012-06-30 08:25:04+00:00)
Title: Select most recent tweet id based on time rather than id

in the loadtweets.php script, select the most recent imported tweet id by sorting on the time column rather than the id column. This is more robust because it allows for inserting older tweets. When inserting an older tweet, it will get a higher id and loadtweets.php will get confused.

I ran into this situation when running my `loadoldtweets.php` script to import all my (3200+) tweets. I happen to have a list of all my tweet id's so I wrote that additional load-script to import 25 old tweets each time it is run. In case you are interested, you can find that script here: https://github.com/teranex/tweetnest/blob/master/maintenance/loadoldtweets.php