1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-25 01:05:36 +00:00

Update LiveStreamController

This commit is contained in:
Daniel Supernault 2022-06-26 20:52:42 -06:00
parent ce517eba05
commit 433eace75e
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

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