mirror of
https://github.com/openvk/openvk
synced 2025-07-07 16:29:50 +03:00
Fix returning 200 response for non-existing user
This commit is contained in:
parent
475f637413
commit
5c734498c7
1 changed files with 1 additions and 5 deletions
|
@ -52,11 +52,7 @@ final class Likes extends VKAPIRequestHandler
|
|||
case "post":
|
||||
$user = (new UsersRepo)->get($user_id);
|
||||
if (is_null($user))
|
||||
return (object) [
|
||||
"liked" => 0,
|
||||
"copied" => 0,
|
||||
"sex" => 0
|
||||
];
|
||||
$this->fail(100, "One of the parameters specified was missing or invalid: user not found");
|
||||
|
||||
$post = (new PostsRepo)->getPostById($owner_id, $item_id);
|
||||
if (is_null($post))
|
||||
|
|
Loading…
Reference in a new issue