mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-25 01:05:36 +00:00
Update LiveStreamController, fix visibility condition
This commit is contained in:
parent
f8e585c49a
commit
6bf68c147e
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ class LiveStreamController extends Controller
|
|||
->whereNotNull('live_at')
|
||||
->first();
|
||||
|
||||
abort_if(!$request->user() && $stream->visibility !== 'public', 404);
|
||||
abort_if(!$request->user() && $stream && $stream->visibility !== 'public', 404);
|
||||
|
||||
return view('live.player', compact('id'));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue