diff options
author | redmatrix <git@macgirvin.com> | 2016-01-27 23:02:36 -0800 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-01-27 23:02:36 -0800 |
commit | ae3ca2b7df7cd9a9cfc069d43f7b6d6cd7aae387 (patch) | |
tree | 53c37fabc028e0d21358e5a13e4ca445bfe08511 /include | |
parent | 722d7ff38d5bbf49a7c990d9219998c2c8a5b58f (diff) | |
download | volse-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.php | 4 |
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); |