Misc changes

This commit is contained in:
2026-01-10 18:55:53 +01:00
parent cfd6af59fb
commit 13b70fdf23
3 changed files with 4 additions and 4 deletions

View File

@@ -4,7 +4,7 @@
<div class="grid grid-cols-1 gap-2 md:grid-cols-2">
@foreach ($latestComments as $comment)
@if ($comment->commentable_type == 'App\Models\Episode')
@if ($comment->commentable_type == \App\Models\Episode::class)
@php $episode = cache()->rememberForever('commentEpisode'.$comment->commentable_id, fn () => App\Models\Episode::with('gallery')->where('id', $comment->commentable_id)->first()); @endphp
<div id="comments" class="flex p-4 bg-white rounded-lg dark:bg-neutral-950">
<div
@@ -34,7 +34,7 @@
{{--@include('partials.comment', ['comment' => $comment])--}}
</div>
</div>
@elseif($comment->commentable_type == 'App\Models\Hentai')
@elseif($comment->commentable_type == \App\Models\Hentai::class)
@php $hentai = cache()->rememberForever('commentHentai'.$comment->commentable_id, fn () => App\Models\Hentai::with('gallery', 'episodes')->where('id', $comment->commentable_id)->first()); @endphp
<div id="comments" class="flex p-4 bg-white rounded-lg dark:bg-neutral-950">
<div