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

@ -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);
}
}