aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-02-04 20:28:36 -0800
committerfriendica <info@friendica.com>2015-02-04 20:28:36 -0800
commit646a874390be8f92736866118d7215e8cb80fb8a (patch)
treecac073ddf5921b5b4a4d27afb9452f7430b428de /include
parent5a0ccbfcf375acad49a0f7e818fe5611c2f858cc (diff)
downloadvolse-hubzilla-646a874390be8f92736866118d7215e8cb80fb8a.tar.gz
volse-hubzilla-646a874390be8f92736866118d7215e8cb80fb8a.tar.bz2
volse-hubzilla-646a874390be8f92736866118d7215e8cb80fb8a.zip
diaspora public posts not delivering to sys channel if there were no other subscribers
Diffstat (limited to 'include')
-rwxr-xr-xinclude/diaspora.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/include/diaspora.php b/include/diaspora.php
index ada90e476..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);
+ }
}