Optimize anonymous public sessions
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
$comments = $comments ?? [];
|
||||
$groupSummary = $groupSummary ?? null;
|
||||
$useUnifiedSeo = true;
|
||||
$canReadSessionAuth = request()->hasSession() && ! request()->attributes->get('skinbase.session_skipped');
|
||||
@endphp
|
||||
|
||||
@push('head')
|
||||
@@ -49,7 +50,7 @@
|
||||
data-canonical='@json($meta["canonical"])'
|
||||
data-comments='@json($comments)'
|
||||
data-group-summary='@json($groupSummary)'
|
||||
data-is-authenticated='@json(auth()->check())'>
|
||||
data-is-authenticated='@json($canReadSessionAuth && auth()->check())'>
|
||||
</div>
|
||||
|
||||
@vite(['resources/js/Pages/ArtworkPage.jsx'])
|
||||
|
||||
Reference in New Issue
Block a user