kopia lustrzana https://github.com/pixelfed/pixelfed
Update LiveStreamController, fix visibility condition
rodzic
f8e585c49a
commit
6bf68c147e
|
@ -130,7 +130,7 @@ class LiveStreamController extends Controller
|
||||||
->whereNotNull('live_at')
|
->whereNotNull('live_at')
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
abort_if(!$request->user() && $stream->visibility !== 'public', 404);
|
abort_if(!$request->user() && $stream && $stream->visibility !== 'public', 404);
|
||||||
|
|
||||||
return view('live.player', compact('id'));
|
return view('live.player', compact('id'));
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue