use request var for post enable settings so can be scripted

This commit is contained in:
Friendika 2011-11-07 14:25:11 -08:00
parent 14230c1c47
commit 92358453fa
8 changed files with 8 additions and 8 deletions

View file

@ -743,10 +743,10 @@ function facebook_post_local(&$a,&$b) {
if((local_user()) && (local_user() == $b['uid'])) {
$fb_post = intval(get_pconfig(local_user(),'facebook','post'));
$fb_enable = (($fb_post && x($_POST,'facebook_enable')) ? intval($_POST['facebook_enable']) : 0);
$fb_enable = (($fb_post && x($_REQUEST,'facebook_enable')) ? intval($_REQUEST['facebook_enable']) : 0);
// if API is used, default to the chosen settings
if($_POST['api_source'] && intval(get_pconfig(local_user(),'facebook','post_by_default')))
if($_REQUEST['api_source'] && intval(get_pconfig(local_user(),'facebook','post_by_default')))
$fb_enable = 1;
if(! $fb_enable)