1
0
Fork 0
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:
Daniel 2022-03-11 10:07:44 -03:00
parent b20d4361fe
commit bd4764cb04

View file

@ -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);