]> git.mxchange.org Git - friendica-addons.git/blobdiff - fbpost/fbpost.php
Re-enabling a once stopped mirroring now doesn't flood the timeline with old posts...
[friendica-addons.git] / fbpost / fbpost.php
index 0d8df16b8aa3f79b041701006aafbea52b8c1257..b5e320fc5d136c1a764fa7193a334743482b43ca 100644 (file)
@@ -140,6 +140,9 @@ function fbpost_post(&$a) {
                $value = ((x($_POST,'mirror_posts')) ? intval($_POST['mirror_posts']) : 0);
                set_pconfig($uid,'facebook','mirror_posts', $value);
 
+               if (!$value)
+                       del_pconfig($uid,'facebook','last_created');
+
                $value = ((x($_POST,'suppress_view_on_friendica')) ? intval($_POST['suppress_view_on_friendica']) : 0);
                set_pconfig($uid,'facebook','suppress_view_on_friendica', $value);