1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
Daniel Neto 2025-03-13 16:17:50 -03:00
parent d731a52cd0
commit 577fd37afc

View file

@ -1541,7 +1541,8 @@ class API extends PluginAbstract
$trans->setTitle($parameters['title']);
$trans->setPublic($parameters['public']);
if ($obj->id = $trans->save()) {
return new ApiObject("", false, $obj);
$trans = LiveTransmition::getFromDb($obj->id, true);
return new ApiObject("", false, $trans);
} else {
return new ApiObject("Error on save");
}