]> git.mxchange.org Git - friendica-addons.git/blobdiff - gpluspost/gpluspost.php
Re-enabling a once stopped mirroring now doesn't flood the timeline with old posts...
[friendica-addons.git] / gpluspost / gpluspost.php
index ab0d07e8e4f2954fe0cd18b6b93b1daeb37bc52f..415e031b2629780a43f5cf75bfcae567922cd052 100644 (file)
@@ -182,6 +182,9 @@ function gpluspost_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');
                }
        }
 }