From c977b1c2f3387553097210c08b89b2af49d9dc30 Mon Sep 17 00:00:00 2001 From: Arthur Monney Date: Tue, 12 Nov 2024 21:11:13 +0100 Subject: [PATCH] fix: [LAR-116] publish scope on single tag articles list --- app/Livewire/Pages/Articles/SingleTag.php | 3 ++- resources/views/components/articles/card-author.blade.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Livewire/Pages/Articles/SingleTag.php b/app/Livewire/Pages/Articles/SingleTag.php index 7a92a202..8d205617 100644 --- a/app/Livewire/Pages/Articles/SingleTag.php +++ b/app/Livewire/Pages/Articles/SingleTag.php @@ -24,9 +24,10 @@ public function render(): View $query->where('id', $this->tag->id); }) ->withCount(['views', 'reactions']) - ->scopes(['published', 'notPinned']) ->orderByDesc('sponsored_at') ->orderByDesc('published_at') + ->published() + ->notPinned() ->paginate($this->perPage), ])->title($this->tag->name); } diff --git a/resources/views/components/articles/card-author.blade.php b/resources/views/components/articles/card-author.blade.php index 6ceffc29..ed884899 100644 --- a/resources/views/components/articles/card-author.blade.php +++ b/resources/views/components/articles/card-author.blade.php @@ -8,7 +8,7 @@ : asset('images/socialcard.png') @endphp -
+