aboutsummaryrefslogtreecommitdiffstats
path: root/include/diaspora.php
diff options
context:
space:
mode:
authorHabeas Codice <habeascodice@federated.social>2015-01-28 17:40:39 -0800
committerHabeas Codice <habeascodice@federated.social>2015-01-28 17:40:39 -0800
commitd59bd31a682a58e0d34a66e06ce8f504189f98d5 (patch)
tree3a34b706f63f8f41bb76c5a049f3bc356d8c265f /include/diaspora.php
parent1a537888333afb052e9eb4954091fd163f5b78d1 (diff)
parent54fd8b21db2d8f3841cf590f88611a1d4f44ce48 (diff)
downloadvolse-hubzilla-d59bd31a682a58e0d34a66e06ce8f504189f98d5.tar.gz
volse-hubzilla-d59bd31a682a58e0d34a66e06ce8f504189f98d5.tar.bz2
volse-hubzilla-d59bd31a682a58e0d34a66e06ce8f504189f98d5.zip
Merge branch 'master' of https://github.com/friendica/red
Diffstat (limited to 'include/diaspora.php')
-rwxr-xr-xinclude/diaspora.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/diaspora.php b/include/diaspora.php
index e494aac0f..767758164 100755
--- a/include/diaspora.php
+++ b/include/diaspora.php
@@ -15,8 +15,14 @@ function diaspora_dispatch_public($msg) {
return;
}
- // find everybody following or allowing this author
+ $sys_disabled = true;
+
+ if(! get_config('system','disable_discover_tab')) {
+ $sys_disabled = get_config('system','disable_diaspora_discover_tab');
+ }
+ $sys = (($sys_disabled) ? null : get_sys_channel());
+ // find everybody following or allowing this author
$r = q("SELECT * from channel where channel_id in ( SELECT abook_channel from abook left join xchan on abook_xchan = xchan_hash WHERE xchan_network like '%%diaspora%%' and xchan_addr = '%s' )",
dbesc($msg['author'])
@@ -29,6 +35,8 @@ 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');