aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-01-27 23:02:36 -0800
committerredmatrix <git@macgirvin.com>2016-01-27 23:02:36 -0800
commitae3ca2b7df7cd9a9cfc069d43f7b6d6cd7aae387 (patch)
tree53c37fabc028e0d21358e5a13e4ca445bfe08511 /include
parent722d7ff38d5bbf49a7c990d9219998c2c8a5b58f (diff)
downloadvolse-hubzilla-ae3ca2b7df7cd9a9cfc069d43f7b6d6cd7aae387.tar.gz
volse-hubzilla-ae3ca2b7df7cd9a9cfc069d43f7b6d6cd7aae387.tar.bz2
volse-hubzilla-ae3ca2b7df7cd9a9cfc069d43f7b6d6cd7aae387.zip
block_public_blackout setting
Diffstat (limited to 'include')
-rw-r--r--include/identity.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/identity.php b/include/identity.php
index 32c4dd130..fd0b4d7f5 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -924,6 +924,9 @@ function profile_sidebar($profile, $block = 0, $show_connect = true) {
$pdesc = true;
$reddress = true;
+ if($block && intval(get_config('system','block_public_blackout')))
+ return $o;
+
if((! is_array($profile)) && (! count($profile)))
return $o;
@@ -935,6 +938,7 @@ function profile_sidebar($profile, $block = 0, $show_connect = true) {
$show_connect = false;
+
$profile['picdate'] = urlencode($profile['picdate']);
call_hooks('profile_sidebar_enter', $profile);