mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 08:03:45 +00:00
Twitter: Prevent posting loops
This commit is contained in:
parent
3f6ed00ded
commit
cc0669a745
1 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue