diff options
author | friendica <info@friendica.com> | 2012-04-27 19:39:19 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-04-27 19:39:19 -0700 |
commit | 39d0926d09b28a70ba70a66c0b29f9ea51a8f9a0 (patch) | |
tree | c3b5ec3fdf33b7f0c3b647d88e704dc88b29aeab /mod/profile.php | |
parent | c3f70a9e56151b8594b3485cc8b12e4d26ac6773 (diff) | |
download | volse-hubzilla-39d0926d09b28a70ba70a66c0b29f9ea51a8f9a0.tar.gz volse-hubzilla-39d0926d09b28a70ba70a66c0b29f9ea51a8f9a0.tar.bz2 volse-hubzilla-39d0926d09b28a70ba70a66c0b29f9ea51a8f9a0.zip |
PRIVACY: if wall is blocked, don't provide public keywords in HTML meta
Diffstat (limited to 'mod/profile.php')
-rw-r--r-- | mod/profile.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/profile.php b/mod/profile.php index de1e27248..e9d4ca344 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -32,6 +32,8 @@ function profile_init(&$a) { profile_load($a,$which,$profile); + $userblock = (($a->profile['hidewall'] && (! local_user()) && (! remote_user())) ? true : false); + if((x($a->profile,'page-flags')) && ($a->profile['page-flags'] == PAGE_COMMUNITY)) { $a->page['htmlhead'] .= '<meta name="friendica.community" content="true" />'; } @@ -41,8 +43,8 @@ function profile_init(&$a) { $delegate = ((strstr($a->profile['openid'],'://')) ? $a->profile['openid'] : 'http://' . $a->profile['openid']); $a->page['htmlhead'] .= '<link rel="openid.delegate" href="' . $delegate . '" />' . "\r\n"; } - - if(! $blocked) { + // site block + if((! $blocked) && (! $userblock)) { $keywords = ((x($a->profile,'pub_keywords')) ? $a->profile['pub_keywords'] : ''); $keywords = str_replace(array('#',',',' ',',,'),array('',' ',',',','),$keywords); if(strlen($keywords)) |