diff options
author | Friendika <info@friendika.com> | 2011-06-23 01:57:14 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-06-23 01:57:14 -0700 |
commit | 96857389ac6a9ab11f0543da5b0af3895dfccfaf (patch) | |
tree | 12771d50402245181c43df95e3f9c5cdedaa7c2f /addon | |
parent | aa4636d03a03718c5c5e58c17af40ee0104be2b6 (diff) | |
download | volse-hubzilla-96857389ac6a9ab11f0543da5b0af3895dfccfaf.tar.gz volse-hubzilla-96857389ac6a9ab11f0543da5b0af3895dfccfaf.tar.bz2 volse-hubzilla-96857389ac6a9ab11f0543da5b0af3895dfccfaf.zip |
friendika-z initial implementation
Diffstat (limited to 'addon')
-rw-r--r-- | addon/facebook/facebook.php | 4 | ||||
-rw-r--r-- | addon/statusnet/statusnet.php | 10 | ||||
-rw-r--r-- | addon/twitter/twitter.php | 5 |
3 files changed, 16 insertions, 3 deletions
diff --git a/addon/facebook/facebook.php b/addon/facebook/facebook.php index 15dffa594..4265ce801 100644 --- a/addon/facebook/facebook.php +++ b/addon/facebook/facebook.php @@ -431,6 +431,10 @@ function facebook_post_hook(&$a,&$b) { if((local_user()) && (local_user() == $b['uid'])) { + // Facebook is not considered a private network + if($b['prvnets']) + return; + if($b['parent']) { $r = q("SELECT * FROM `item` WHERE `id` = %d AND `uid` = %d LIMIT 1", intval($b['parent']), diff --git a/addon/statusnet/statusnet.php b/addon/statusnet/statusnet.php index 85024631c..22f7dc8f9 100644 --- a/addon/statusnet/statusnet.php +++ b/addon/statusnet/statusnet.php @@ -303,10 +303,14 @@ function statusnet_post_hook(&$a,&$b) { if((local_user()) && (local_user() == $b['uid']) && (! $b['private']) && (!$b['parent']) ) { - load_pconfig(local_user(), 'statusnet'); + // Status.Net is not considered a private network + if($b['prvnets']) + return; + + load_pconfig(local_user(), 'statusnet'); - $api = get_pconfig(local_user(), 'statusnet', 'baseapi'); - $ckey = get_pconfig(local_user(), 'statusnet', 'consumerkey' ); + $api = get_pconfig(local_user(), 'statusnet', 'baseapi'); + $ckey = get_pconfig(local_user(), 'statusnet', 'consumerkey' ); $csecret = get_pconfig(local_user(), 'statusnet', 'consumersecret' ); $otoken = get_pconfig(local_user(), 'statusnet', 'oauthtoken' ); $osecret = get_pconfig(local_user(), 'statusnet', 'oauthsecret' ); diff --git a/addon/twitter/twitter.php b/addon/twitter/twitter.php index aeb9cc937..7829799bc 100644 --- a/addon/twitter/twitter.php +++ b/addon/twitter/twitter.php @@ -195,6 +195,11 @@ function twitter_post_hook(&$a,&$b) { if((local_user()) && (local_user() == $b['uid']) && (! $b['private']) && (! $b['parent']) ) { + // Twitter is not considered a private network + if($b['prvnets']) + return; + + load_pconfig(local_user(), 'twitter'); $ckey = get_config('twitter', 'consumerkey' ); |