mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
Update
This commit is contained in:
parent
f303115b7e
commit
ff378f8983
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue