mirror of
				https://github.com/pierre42100/ComunicAPI
				synced 2025-11-03 19:54:14 +00:00 
			
		
		
		
	Moved visibility level detection
This commit is contained in:
		@@ -30,11 +30,8 @@ class postsController {
 | 
			
		||||
		else
 | 
			
		||||
			$startFrom = 0; //No start point
 | 
			
		||||
 | 
			
		||||
		//Get visibility level for the post
 | 
			
		||||
		$visibility_level = CS::get()->components->posts->getUserVisibility(userID, $userID);
 | 
			
		||||
 | 
			
		||||
		//Get the post of the user
 | 
			
		||||
		$posts = CS::get()->components->posts->getUserPosts(userID, $userID, $visibility_level, $startFrom);
 | 
			
		||||
		$posts = CS::get()->components->posts->getUserPosts(userID, $userID, $startFrom);
 | 
			
		||||
 | 
			
		||||
		return $posts;
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user