discovered a couple of loose ends in the per-member enable diaspora setting
This commit is contained in:
parent
0ad71b3efa
commit
0d8fcbe48d
@ -2371,6 +2371,24 @@ function diaspora_profile($importer,$xml,$msg) {
|
||||
|
||||
function diaspora_share($owner,$contact) {
|
||||
$a = get_app();
|
||||
|
||||
$enabled = intval(get_config('system','diaspora_enabled'));
|
||||
if(! $enabled) {
|
||||
logger('diaspora_share: disabled');
|
||||
return;
|
||||
}
|
||||
|
||||
$allowed = get_pconfig($owner['channel_id'],'system','diaspora_allowed');
|
||||
if($allowed === false)
|
||||
$allowed = 1;
|
||||
|
||||
if(! intval($allowed)) {
|
||||
logger('diaspora_share: disallowed for channel ' . $importer['channel_name']);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
$myaddr = $owner['channel_address'] . '@' . substr($a->get_baseurl(), strpos($a->get_baseurl(),'://') + 3);
|
||||
|
||||
if(! array_key_exists('xchan_hash',$contact)) {
|
||||
@ -2947,6 +2965,14 @@ function diaspora_transmit($owner,$contact,$slap,$public_batch,$queue_run=false)
|
||||
return 200;
|
||||
}
|
||||
|
||||
$allowed = get_pconfig($owner['channel_id'],'system','diaspora_allowed');
|
||||
if($allowed === false)
|
||||
$allowed = 1;
|
||||
|
||||
if(! intval($allowed)) {
|
||||
return 200;
|
||||
}
|
||||
|
||||
if($public_batch)
|
||||
$dest_url = $contact['hubloc_callback'] . '/public';
|
||||
else
|
||||
|
@ -1 +1 @@
|
||||
2015-06-21.1070
|
||||
2015-06-22.1071
|
||||
|
Reference in New Issue
Block a user