mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-25 01:05:36 +00:00
Update LiveStreamController
This commit is contained in:
parent
ce517eba05
commit
433eace75e
1 changed files with 2 additions and 2 deletions
|
@ -368,16 +368,16 @@ class LiveStreamController extends Controller
|
|||
|
||||
if($token) {
|
||||
$stream = LiveStream::whereStreamKey($key)->firstOrFail();
|
||||
StreamStart::dispatch($stream->profile_id);
|
||||
return redirect($stream->getStreamRtmpUrl(), 301);
|
||||
} else {
|
||||
$stream = LiveStream::whereStreamId($key)->firstOrFail();
|
||||
StreamStart::dispatch($stream->profile_id);
|
||||
}
|
||||
|
||||
if($request->filled('name') && $token == false) {
|
||||
$stream->live_at = now();
|
||||
$stream->save();
|
||||
|
||||
StreamStart::dispatch($stream->profile_id);
|
||||
return [];
|
||||
} else {
|
||||
abort(400);
|
||||
|
|
Loading…
Reference in a new issue