From e3d1ef8ef7c1be2a8588ec1709304f766b0c7607 Mon Sep 17 00:00:00 2001 From: Friendika Date: Tue, 24 May 2011 16:30:52 -0700 Subject: ability to hide profile and wall from unknown people --- boot.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index f72f4dd7f..faf3c4db4 100644 --- a/boot.php +++ b/boot.php @@ -4,9 +4,9 @@ set_time_limit(0); ini_set('pcre.backtrack_limit', 250000); -define ( 'FRIENDIKA_VERSION', '2.2.989' ); +define ( 'FRIENDIKA_VERSION', '2.2.990' ); define ( 'DFRN_PROTOCOL_VERSION', '2.21' ); -define ( 'DB_UPDATE_VERSION', 1055 ); +define ( 'DB_UPDATE_VERSION', 1056 ); define ( 'EOL', "
\r\n" ); define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' ); @@ -2361,6 +2361,10 @@ function profile_sidebar($profile) { $homepage = ((x($profile,'homepage') == 1) ? '
' . t('Homepage:') . ' ' . linkify($profile['homepage']) . '
' : ''); + if($profile['hidewall'] && (! local_user()) && (! remote_user())) { + $location = $gender = $marital = $homepage = ''; + } + $tpl = get_markup_template('profile_vcard.tpl'); $o .= replace_macros($tpl, array( -- cgit v1.2.3