]> git.mxchange.org Git - friendica-addons.git/blobdiff - statusnet/statusnet.php
Re-enabling a once stopped mirroring now doesn't flood the timeline with old posts...
[friendica-addons.git] / statusnet / statusnet.php
index 1957cc96178b1d8286247fd8ff6b3128849d8ee7..abbda0e18e491a58bf89f3e350bcc15f86de62ed 100644 (file)
@@ -250,6 +250,10 @@ function statusnet_settings_post ($a,$post) {
                set_pconfig(local_user(), 'statusnet', 'mirror_posts', intval($_POST['statusnet-mirror']));
                set_pconfig(local_user(), 'statusnet', 'import', intval($_POST['statusnet-import']));
                set_pconfig(local_user(), 'statusnet', 'create_user', intval($_POST['statusnet-create_user']));
+
+               if (!intval($_POST['statusnet-mirror']))
+                       del_pconfig(local_user(),'statusnet','lastid');
+
                info( t('StatusNet settings updated.') . EOL);
        }}}}
 }