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 -
+