From 13b70fdf2372f5f80f106380e193a168f0c9cc71 Mon Sep 17 00:00:00 2001 From: w33b Date: Sat, 10 Jan 2026 18:55:53 +0100 Subject: [PATCH] Misc changes --- app/Livewire/Comments.php | 2 +- resources/views/home/partials/comments.blade.php | 4 ++-- resources/views/livewire/comments.blade.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Livewire/Comments.php b/app/Livewire/Comments.php index 824a4ec..b263330 100644 --- a/app/Livewire/Comments.php +++ b/app/Livewire/Comments.php @@ -47,7 +47,7 @@ class Comments extends Component ->with('user', 'children.user', 'children.children') ->parent() ->latest() - ->paginate(3); + ->paginate(50); return view('livewire.comments', [ 'comments' => $comments diff --git a/resources/views/home/partials/comments.blade.php b/resources/views/home/partials/comments.blade.php index 2548d70..9a9eb7c 100644 --- a/resources/views/home/partials/comments.blade.php +++ b/resources/views/home/partials/comments.blade.php @@ -4,7 +4,7 @@
@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
$comment])--}}
- @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
@endforeach - {{ $comments->links() }} + {{ $comments->links('pagination::tailwind') }} @else

No comments yet.

@endif