]> git.mxchange.org Git - friendica-addons.git/commitdiff
use request var for post enable settings so can be scripted
authorFriendika <info@friendika.com>
Mon, 7 Nov 2011 22:25:11 +0000 (14:25 -0800)
committerFriendika <info@friendika.com>
Mon, 7 Nov 2011 22:25:11 +0000 (14:25 -0800)
facebook.tgz
facebook/facebook.php
statusnet.tgz
statusnet/statusnet.php
twitter.tgz
twitter/twitter.php
wppost.tgz
wppost/wppost.php

index 3f21bdc469d6d5da0218a816ad5c2b6fcc730899..2eeb5f4f91036a0de5dd05c3f264f9ffdcd96633 100644 (file)
Binary files a/facebook.tgz and b/facebook.tgz differ
index 3c0a2a04fe75dd232b1359822ca87bdf70886447..268f79b16341ec92860a15ec2df7435c5fc85cd2 100644 (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)
index fcb4076788160abe0a04971f9c923bae03716b59..93ae0e5852e8e755c696f8e61e4ac329e6e936ec 100644 (file)
Binary files a/statusnet.tgz and b/statusnet.tgz differ
index 0020b4b50a85efbcdbf966d23d9df4a822312099..c29ea2edc4970d4b96e4b27b94ab9a6e356418ae 100644 (file)
@@ -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)
index 0ddf19242487194caecded78ef043a57b248f141..f4fcc79c78203cb968c4e8083ea2ffc204157edc 100644 (file)
Binary files a/twitter.tgz and b/twitter.tgz differ
index 7218e8ec43cb56adadf4652b0a5d0e1b3eb5220a..6f13a443bb64a5fbee8a09bf33cbc9f23ccc8e97 100644 (file)
@@ -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)
index fd0d262b3ba00a32aca2709691f23043816ca5cc..c76b41380f0656ec335c556fcf4863f50001e2fc 100644 (file)
Binary files a/wppost.tgz and b/wppost.tgz differ
index b987778a258b5c7f3dac34d0c94ebf2255680b57..235aa823411f94f01c5a9aab2ae0fe11f36a3ca4 100644 (file)
@@ -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)