mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 06:35:15 +00:00
diaspora disallowed by default
This commit is contained in:
parent
bc1b7afc85
commit
b2c5020af7
3 changed files with 0 additions and 8 deletions
|
@ -65,8 +65,6 @@ function diaspora_dispatch($importer,$msg) {
|
|||
}
|
||||
|
||||
$allowed = get_pconfig($importer['channel_id'],'system','diaspora_allowed');
|
||||
if($allowed === false)
|
||||
$allowed = 1;
|
||||
|
||||
if(! intval($allowed)) {
|
||||
logger('mod-diaspora: disallowed for channel ' . $importer['channel_name']);
|
||||
|
@ -179,8 +177,6 @@ function diaspora_process_outbound($arr) {
|
|||
|
||||
|
||||
$allowed = get_pconfig($arr['channel']['channel_id'],'system','diaspora_allowed');
|
||||
if($allowed === false)
|
||||
$allowed = 1;
|
||||
|
||||
if(! intval($allowed)) {
|
||||
logger('mod-diaspora: disallowed for channel ' . $arr['channel']['channel_name']);
|
||||
|
|
|
@ -137,8 +137,6 @@ function new_contact($uid,$url,$channel,$interactive = false, $confirm = false)
|
|||
}
|
||||
|
||||
$allowed = get_pconfig($uid,'system','diaspora_allowed');
|
||||
if($allowed === false)
|
||||
$allowed = 1;
|
||||
|
||||
if(! intval($allowed)) {
|
||||
$result['message'] = t('Protocol blocked for this channel.');
|
||||
|
|
|
@ -669,8 +669,6 @@ function settings_content(&$a) {
|
|||
|
||||
if($diaspora_enabled) {
|
||||
$dspr_allowed = get_pconfig(local_channel(),'system','diaspora_allowed');
|
||||
if($dspr_allowed === false)
|
||||
$dspr_allowed = 1;
|
||||
$pubcomments = get_pconfig(local_channel(),'system','diaspora_public_comments');
|
||||
if($pubcomments === false)
|
||||
$pubcomments = 1;
|
||||
|
|
Loading…
Reference in a new issue