Get the comments associated to a post

This commit is contained in:
Pierre
2017-12-25 09:58:30 +01:00
parent d3cdad6572
commit fda0b10a7c
4 changed files with 115 additions and 3 deletions

View File

@ -33,7 +33,10 @@ class postsController {
//Get visibility level for the post
$visibility_level = CS::get()->components->posts->getUserVisibility(userID, $userID);
return CS::get()->components->posts->getUserPosts(userID, $userID, $visibility_level, $startFrom);
//Get the post of the user
$posts = CS::get()->components->posts->getUserPosts(userID, $userID, $visibility_level, $startFrom);
return $posts;
}
}