forked from friendica/friendica-addons
use request var for post enable settings so can be scripted
This commit is contained in:
parent
14230c1c47
commit
92358453fa
8 changed files with 8 additions and 8 deletions
BIN
facebook.tgz
BIN
facebook.tgz
Binary file not shown.
|
@ -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)
|
||||
|
|
BIN
statusnet.tgz
BIN
statusnet.tgz
Binary file not shown.
|
@ -362,10 +362,10 @@ function statusnet_post_local(&$a,&$b) {
|
|||
if((local_user()) && (local_user() == $b['uid']) && (! $b['private'])) {
|
||||
|
||||
$statusnet_post = get_pconfig(local_user(),'statusnet','post');
|
||||
$statusnet_enable = (($statusnet_post && x($_POST,'statusnet_enable')) ? intval($_POST['statusnet_enable']) : 0);
|
||||
$statusnet_enable = (($statusnet_post && x($_REQUEST,'statusnet_enable')) ? intval($_REQUEST['statusnet_enable']) : 0);
|
||||
|
||||
// if API is used, default to the chosen settings
|
||||
if($_POST['api_source'] && intval(get_pconfig(local_user(),'statusnet','post_by_default')))
|
||||
if($_REQUEST['api_source'] && intval(get_pconfig(local_user(),'statusnet','post_by_default')))
|
||||
$statusnet_enable = 1;
|
||||
|
||||
if(! $statusnet_enable)
|
||||
|
|
BIN
twitter.tgz
BIN
twitter.tgz
Binary file not shown.
|
@ -214,10 +214,10 @@ function twitter_post_local(&$a,&$b) {
|
|||
if((local_user()) && (local_user() == $b['uid']) && (! $b['private']) && (! $b['parent']) ) {
|
||||
|
||||
$twitter_post = intval(get_pconfig(local_user(),'twitter','post'));
|
||||
$twitter_enable = (($twitter_post && x($_POST,'twitter_enable')) ? intval($_POST['twitter_enable']) : 0);
|
||||
$twitter_enable = (($twitter_post && x($_REQUEST,'twitter_enable')) ? intval($_REQUEST['twitter_enable']) : 0);
|
||||
|
||||
// if API is used, default to the chosen settings
|
||||
if($_POST['api_source'] && intval(get_pconfig(local_user(),'twitter','post_by_default')))
|
||||
if($_REQUEST['api_source'] && intval(get_pconfig(local_user(),'twitter','post_by_default')))
|
||||
$twitter_enable = 1;
|
||||
|
||||
if(! $twitter_enable)
|
||||
|
|
BIN
wppost.tgz
BIN
wppost.tgz
Binary file not shown.
|
@ -132,9 +132,9 @@ function wppost_post_local(&$a,&$b) {
|
|||
|
||||
$wp_post = intval(get_pconfig(local_user(),'wppost','post'));
|
||||
|
||||
$wp_enable = (($wp_post && x($_POST,'wppost_enable')) ? intval($_POST['wppost_enable']) : 0);
|
||||
$wp_enable = (($wp_post && x($_REQUEST,'wppost_enable')) ? intval($_REQUEST['wppost_enable']) : 0);
|
||||
|
||||
if($_POST['api_source'] && intval(get_pconfig(local_user(),'wppost','post_by_default')))
|
||||
if($_REQUEST['api_source'] && intval(get_pconfig(local_user(),'wppost','post_by_default')))
|
||||
$wp_enable = 1;
|
||||
|
||||
if(! $wp_enable)
|
||||
|
|
Loading…
Reference in a new issue