]> git.mxchange.org Git - friendica.git/commitdiff
don't block private posts to logged in users on the local hub
authorZach Prezkuta <fermion@gmx.com>
Mon, 28 Jan 2013 05:42:36 +0000 (22:42 -0700)
committerZach Prezkuta <fermion@gmx.com>
Mon, 28 Jan 2013 05:42:36 +0000 (22:42 -0700)
include/security.php

index d92f48a084e6fd226f091d98252fb75727bb25e6..126f162377f39734099628e27c207ae48675a7c7 100644 (file)
@@ -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 = '';
        }
 
        /**