]> git.mxchange.org Git - friendica-addons.git/blobdiff - twitter/twitter.php
Re-enabling a once stopped mirroring now doesn't flood the timeline with old posts...
[friendica-addons.git] / twitter / twitter.php
index 7204ec5b0eb50d1758254954cac88db33ed31d86..8a80f471baf30749b48443827004d13467946cb8 100755 (executable)
@@ -194,7 +194,11 @@ function twitter_settings_post ($a,$post) {
                set_pconfig(local_user(), 'twitter', 'mirror_posts', intval($_POST['twitter-mirror']));
                set_pconfig(local_user(), 'twitter', 'import', intval($_POST['twitter-import']));
                set_pconfig(local_user(), 'twitter', 'create_user', intval($_POST['twitter-create_user']));
-                info( t('Twitter settings updated.') . EOL);
+
+                if (!intval($_POST['twitter-mirror']))
+                        del_pconfig(local_user(),'twitter','lastid');
+
+                info(t('Twitter settings updated.') . EOL);
        }}
 }
 function twitter_settings(&$a,&$s) {