post crud fix
This commit is contained in:
@ -30,7 +30,7 @@ class PostController extends Controller
|
||||
$postForm = new CreatePostForm();
|
||||
$postService = new PostService();
|
||||
$postForm->load($_REQUEST);
|
||||
if((new UserService)->check($_REQUEST['user_id'])) {
|
||||
if(UserService::check($_REQUEST['user_id'])) {
|
||||
if ($postForm->validate()) {
|
||||
$post = $postService->create($postForm);
|
||||
if ($post) {
|
||||
|
Reference in New Issue
Block a user