mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
Show active lives in the API
This commit is contained in:
parent
b20d4361fe
commit
bd4764cb04
1 changed files with 1 additions and 1 deletions
|
@ -659,7 +659,7 @@ class API extends PluginAbstract {
|
|||
$value['live_transmitions_history_id'] = $value['id'];
|
||||
$value['isPrivate'] = LiveTransmitionHistory::isPrivate($value['id']);
|
||||
$value['isPasswordProtected'] = LiveTransmitionHistory::isPasswordProtected($value['id']);
|
||||
$obj->livestream["activeLives"][] = Live::getLinkToLiveFromUsers_idAndLiveServer($user->getBdId(), $obj->livestream["live_servers_id"]);
|
||||
$obj->livestream["activeLives"][] = $value;
|
||||
}
|
||||
|
||||
return new ApiObject("", false, $obj);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue