aboutsummaryrefslogtreecommitdiffstats
path: root/include/diaspora.php
diff options
context:
space:
mode:
authorHabeas Codice <habeascodice@federated.social>2015-02-05 09:15:39 -0800
committerHabeas Codice <habeascodice@federated.social>2015-02-05 09:15:39 -0800
commit9ed23f9081b56369349d4e06c51e3856f950804e (patch)
treeb3a1121ec41e04cce02cfa07fc958b95a3fd289b /include/diaspora.php
parent88488fdfbb58aa04b450af1691aba7cea1bce8ab (diff)
parent646a874390be8f92736866118d7215e8cb80fb8a (diff)
downloadvolse-hubzilla-9ed23f9081b56369349d4e06c51e3856f950804e.tar.gz
volse-hubzilla-9ed23f9081b56369349d4e06c51e3856f950804e.tar.bz2
volse-hubzilla-9ed23f9081b56369349d4e06c51e3856f950804e.zip
Merge branch 'master' of https://github.com/friendica/red
Diffstat (limited to 'include/diaspora.php')
-rwxr-xr-xinclude/diaspora.php15
1 files changed, 10 insertions, 5 deletions
diff --git a/include/diaspora.php b/include/diaspora.php
index 8f2f93209..8047d0e64 100755
--- a/include/diaspora.php
+++ b/include/diaspora.php
@@ -35,11 +35,16 @@ function diaspora_dispatch_public($msg) {
logger('diaspora_public: delivering to: ' . $rr['channel_name'] . ' (' . $rr['channel_address'] . ') ');
diaspora_dispatch($rr,$msg);
}
- if($sys)
- diaspora_dispatch($sys,$msg);
}
- else
- logger('diaspora_public: no subscribers');
+ else {
+ if(! $sys)
+ logger('diaspora_public: no subscribers');
+ }
+
+ if($sys) {
+ logger('diaspora_public: delivering to sys.');
+ diaspora_dispatch($sys,$msg);
+ }
}
@@ -688,7 +693,7 @@ function diaspora_request($importer,$xml) {
$default_perms = $x['perms_accept'];
}
if(! $default_perms)
- $default_perms = intval(get_pconfig($channel['channel_id'],'system','autoperms'));
+ $default_perms = intval(get_pconfig($importer['channel_id'],'system','autoperms'));
$their_perms = PERMS_R_STREAM|PERMS_R_PROFILE|PERMS_R_PHOTOS|PERMS_R_ABOOK|PERMS_W_STREAM|PERMS_W_COMMENT|PERMS_W_MAIL|PERMS_W_CHAT|PERMS_R_STORAGE|PERMS_R_PAGES;