if (count($posts)) {
foreach ($posts as $post) {
- if ($post->id_str > $lastid)
+ if ($post->id_str > $lastid) {
$lastid = $post->id_str;
+ set_pconfig($uid, 'twitter', 'lastid', $lastid);
+ }
if ($first_time)
continue;
if (count($posts)) {
foreach ($posts as $post) {
- if ($post->id_str > $lastid)
+ if ($post->id_str > $lastid) {
$lastid = $post->id_str;
+ set_pconfig($uid, 'twitter', 'lasthometimelineid', $lastid);
+ }
if ($first_time)
continue;