X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fdisplay.php;h=52a84e755e1dd0802b5d8e578c6447c0185fe921;hb=20ca4512000e80386fe6f9b3fd85864bc0e91627;hp=305a21825f5420a0ba1a069588fe766640b0a66a;hpb=4e7a5dc56ebb8d99ed06b0b303c4ee24460ae6a8;p=friendica.git diff --git a/mod/display.php b/mod/display.php index 305a21825f..52a84e755e 100644 --- a/mod/display.php +++ b/mod/display.php @@ -26,8 +26,6 @@ function display_content(&$a) { return; } - - $groups = array(); $contact = null; @@ -59,6 +57,13 @@ function display_content(&$a) { if(count($r)) $a->page_contact = $r[0]; + $is_owner = ((local_user()) && (local_user() == $a->profile['profile_uid']) ? true : false); + + if($a->profile['hidewall'] && (! $is_owner) && (! $remote_contact)) { + notice( t('Access to this profile has been restricted.') . EOL); + return; + } + $sql_extra = permissions_sql($a->profile['uid'],$remote_contact,$groups); $r = q("SELECT `item`.*, `item`.`id` AS `item_id`, @@ -109,7 +114,7 @@ function display_content(&$a) { } - $o .= '
' . t('Shared content is covered by the Creative Commons Attribution 3.0 license.') . '
'; + $o .= cc_license(); return $o; }