Re-enabling a once stopped mirroring now doesn't flood the timeline with old posts anymore.

This commit is contained in:
Michael Vogel 2014-05-29 22:10:54 +02:00
parent ce0ea5434f
commit 2284e21c0a
6 changed files with 20 additions and 2 deletions

View 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);