From 2635c59c83cf61136c100672fcb49b8b8b33cc5d Mon Sep 17 00:00:00 2001 From: Zach Prezkuta Date: Sun, 27 Jan 2013 22:42:36 -0700 Subject: [PATCH] don't block private posts to logged in users on the local hub --- include/security.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/include/security.php b/include/security.php index d92f48a084..126f162377 100644 --- a/include/security.php +++ b/include/security.php @@ -266,14 +266,8 @@ function item_permissions_sql($owner_id,$remote_verified = false,$groups = null) * Profile owner - everything is visible */ - if($local_user) { - if($local_user == $owner_id) { - $sql = ''; - } - else { - /* logged in user can see hidden walls and feeds that are blocked to unknown users (private == 2) */ - $sql = " AND private != 1 "; - } + if($local_user && ($local_user == $owner_id)) { + $sql = ''; } /**