]> git.mxchange.org Git - friendica-addons.git/blobdiff - fromgplus/fromgplus.php
Re-enabling a once stopped mirroring now doesn't flood the timeline with old posts...
[friendica-addons.git] / fromgplus / fromgplus.php
index d2b496baf8312dd5b1bf1d038c2581c36bb0576c..5c7e1e2877f7d1db6b56c8fac7935994f0a05a31 100644 (file)
@@ -71,6 +71,10 @@ function fromgplus_addon_settings_post(&$a,&$b) {
                set_pconfig(local_user(),'fromgplus','account',trim($_POST['fromgplus-account']));
                $enable = ((x($_POST,'fromgplus-enable')) ? intval($_POST['fromgplus-enable']) : 0);
                set_pconfig(local_user(),'fromgplus','enable', $enable);
+
+               if (!$enable)
+                       del_pconfig(local_user(),'fromgplus','lastdate');
+
                info( t('Google+ Import Settings saved.') . EOL);
        }
 }