Moved visibility level detection

This commit is contained in:
Pierre
2017-12-31 17:48:26 +01:00
parent b640739fd4
commit c058baf394
2 changed files with 5 additions and 6 deletions

View File

@ -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;
}