friendika-z initial implementation
This commit is contained in:
parent
aa4636d03a
commit
96857389ac
6 changed files with 25 additions and 6 deletions
|
@ -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']),
|
||||
|
|
|
@ -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' );
|
||||
|
|
|
@ -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' );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue