Skip to content

Commit af8674d

Browse files
authored
fix: [LAR-116] publish scope on single tag articles list (#220)
2 parents 9687fde + c977b1c commit af8674d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/Livewire/Pages/Articles/SingleTag.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ public function render(): View
2424
$query->where('id', $this->tag->id);
2525
})
2626
->withCount(['views', 'reactions'])
27-
->scopes(['published', 'notPinned'])
2827
->orderByDesc('sponsored_at')
2928
->orderByDesc('published_at')
29+
->published()
30+
->notPinned()
3031
->paginate($this->perPage),
3132
])->title($this->tag->name);
3233
}

resources/views/components/articles/card-author.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
: asset('images/socialcard.png')
99
@endphp
1010

11-
<article class="relative group" wire:key="{{ $article->slug() }}">
11+
<article class="relative" wire:key="{{ $article->slug() }}">
1212
<div class="relative w-full">
1313
<img
1414
src="{{ $media }}"

0 commit comments

Comments
 (0)