diff options
author | Friendika <info@friendika.com> | 2011-05-24 16:30:52 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-05-24 16:30:52 -0700 |
commit | e3d1ef8ef7c1be2a8588ec1709304f766b0c7607 (patch) | |
tree | 36fa06a1745df6c041b99b23a3524b7bd14bcfa7 /boot.php | |
parent | 21769d7390a0bcfb5c74e53c05867ab52a54448b (diff) | |
download | volse-hubzilla-e3d1ef8ef7c1be2a8588ec1709304f766b0c7607.tar.gz volse-hubzilla-e3d1ef8ef7c1be2a8588ec1709304f766b0c7607.tar.bz2 volse-hubzilla-e3d1ef8ef7c1be2a8588ec1709304f766b0c7607.zip |
ability to hide profile and wall from unknown people
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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', "<br />\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) ? '<div class="homepage"><span class="homepage-label">' . t('Homepage:') . ' </span><span class="homepage-url">' . linkify($profile['homepage']) . '</span></div><div class="profile-clear"></div>' : ''); + if($profile['hidewall'] && (! local_user()) && (! remote_user())) { + $location = $gender = $marital = $homepage = ''; + } + $tpl = get_markup_template('profile_vcard.tpl'); $o .= replace_macros($tpl, array( |