diff options
author | friendica <info@friendica.com> | 2015-02-04 20:28:36 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-02-04 20:28:36 -0800 |
commit | 646a874390be8f92736866118d7215e8cb80fb8a (patch) | |
tree | cac073ddf5921b5b4a4d27afb9452f7430b428de /include/diaspora.php | |
parent | 5a0ccbfcf375acad49a0f7e818fe5611c2f858cc (diff) | |
download | volse-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/diaspora.php')
-rwxr-xr-x | include/diaspora.php | 13 |
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); + } } |