]> 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 c135e0ed3e55cfd9bf6b064d3b1434973a1e870c..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');
                }
        }
 }
@@ -257,7 +260,6 @@ function gpluspost_send(&$a,&$b) {
                if($username && $password) {
                        require_once("addon/gpluspost/postToGooglePlus.php");
                        require_once("include/plaintext.php");
-                       require_once("include/network.php");
 
                        $item = $b;