';
+
/* provide a submit button */
$s .= '';
$s .= 'Register an account at Hootsuite, add your G+ page and add the feed-url there. ';
- //$s .= 'Feed-url: '.$a->get_baseurl().'/gpluspost/'.$a->user["uid"].'
';
$s .= 'Feed-url: '.$a->get_baseurl().'/gpluspost/'.urlencode($a->user["nickname"]).'';
}
@@ -75,6 +80,7 @@ function gpluspost_settings_post(&$a,&$b) {
if(x($_POST,'gpluspost-submit')) {
set_pconfig(local_user(),'gpluspost','post',intval($_POST['gpluspost']));
set_pconfig(local_user(),'gpluspost','post_by_default',intval($_POST['gpluspost_bydefault']));
+ set_pconfig(local_user(),'gpluspost','no_loop_prevention',intval($_POST['gpluspost_noloopprevention']));
}
}
@@ -119,8 +125,8 @@ function gpluspost_send(&$a,&$b) {
return;
// if post comes from Google+ don't send it back
- //if($b['app'] == "Google+")
- // return;
+ if (!get_pconfig($b["uid"],'gpluspost','no_loop_prevention') and ($b['app'] == "Google+"))
+ return;
$itemlist = get_pconfig($b["uid"],'gpluspost','itemlist');
$items = explode(",", $itemlist);