Google+/Twitter/GNU Social: Prevent posting loops when mirroring posts #382

Merged
annando merged 12 commits from 1603-fromgplus-keywords into master 2016-11-12 18:56:41 +01:00
Showing only changes of commit 20b241738e - Show all commits

View file

@ -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;