aboutsummaryrefslogtreecommitdiffstats
path: root/include/identity.php
diff options
context:
space:
mode:
authormarijus <mario@localhost.localdomain>2014-02-12 23:41:08 +0100
committermarijus <mario@localhost.localdomain>2014-02-12 23:41:08 +0100
commit8e68ecc68bb84f9fa1f69ff4584982a7dc810462 (patch)
tree261764c66c48426ca28fda079fda688a44da6aa6 /include/identity.php
parent1ca85abf83d95eb49f9b7ffbbda5f01de40388e5 (diff)
downloadvolse-hubzilla-8e68ecc68bb84f9fa1f69ff4584982a7dc810462.tar.gz
volse-hubzilla-8e68ecc68bb84f9fa1f69ff4584982a7dc810462.tar.bz2
volse-hubzilla-8e68ecc68bb84f9fa1f69ff4584982a7dc810462.zip
dont show onlinestatus if block_public is on
Diffstat (limited to 'include/identity.php')
-rw-r--r--include/identity.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/identity.php b/include/identity.php
index 0e01b4a0d..12eeb47ac 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -1154,6 +1154,9 @@ function is_member($s) {
function get_online_status($nick) {
+ if(get_config('system','block_public') && ! local_user() && ! remote_user())
+ return;
+
$ret = array('result' => false);
$r = q("select channel_id, channel_hash from channel where channel_address = '%s' limit 1",