From 433eace75e803999f725f78107935dcba6ed5ae6 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 26 Jun 2022 20:52:42 -0600 Subject: [PATCH] Update LiveStreamController --- app/Http/Controllers/LiveStreamController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/LiveStreamController.php b/app/Http/Controllers/LiveStreamController.php index f72065059..c372042e9 100644 --- a/app/Http/Controllers/LiveStreamController.php +++ b/app/Http/Controllers/LiveStreamController.php @@ -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);