X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=twitter%2Ftwitter.php;h=8f023dfeb4608f66b5bf38bb9e468cde6d1136f1;hb=f29c45572dbad772b07611204b84e943b5808021;hp=07fa58ad1b3332ab279fbec946460ab502b249b2;hpb=2baf1090c30bce74912815b6390b60e2aa0421c4;p=friendica-addons.git diff --git a/twitter/twitter.php b/twitter/twitter.php index 07fa58ad..8f023dfe 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -771,8 +771,10 @@ function twitter_fetchtimeline($a, $uid) { 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; @@ -1698,8 +1700,10 @@ function twitter_fetchhometimeline($a, $uid) { 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;