mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-11 14:40:46 +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) {
|
if($token) {
|
||||||
$stream = LiveStream::whereStreamKey($key)->firstOrFail();
|
$stream = LiveStream::whereStreamKey($key)->firstOrFail();
|
||||||
|
StreamStart::dispatch($stream->profile_id);
|
||||||
return redirect($stream->getStreamRtmpUrl(), 301);
|
return redirect($stream->getStreamRtmpUrl(), 301);
|
||||||
} else {
|
} else {
|
||||||
$stream = LiveStream::whereStreamId($key)->firstOrFail();
|
$stream = LiveStream::whereStreamId($key)->firstOrFail();
|
||||||
|
StreamStart::dispatch($stream->profile_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
if($request->filled('name') && $token == false) {
|
if($request->filled('name') && $token == false) {
|
||||||
$stream->live_at = now();
|
$stream->live_at = now();
|
||||||
$stream->save();
|
$stream->save();
|
||||||
|
|
||||||
StreamStart::dispatch($stream->profile_id);
|
|
||||||
return [];
|
return [];
|
||||||
} else {
|
} else {
|
||||||
abort(400);
|
abort(400);
|
||||||
|
|
Loading…
Reference in a new issue