1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
This commit is contained in:
Daniel Neto 2024-06-19 16:42:09 -03:00
parent f303115b7e
commit ff378f8983

View file

@ -2130,7 +2130,13 @@ class API extends PluginAbstract
return new ApiObject("User must be logged");
}
new Like($like, $parameters['videos_id']);
return new ApiObject("", false, Like::getLikes($parameters['videos_id']));
$obj = Like::getLikes($parameters['videos_id']);
if(empty($obj)){
$obj = new stdClass();
}
return new ApiObject("", false, $obj);
}
/**