Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/Http/Livewire/Articles/Browse.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function validSort(string $sort): bool

public function render(): View
{
$articles = Article::with('tags')
$articles = Article::with(['tags', 'user'])
->withCount(['views', 'reactions'])
->published()
->notPinned()
Expand All @@ -60,7 +60,7 @@ public function render(): View
$query->published();
})->orderBy('name')->get();

$selectedTag = Tag::where('name', $this->tag)->first();
$selectedTag = Tag::where('slug', $this->tag)->first();

if ($this->tag) {
$articles->forTag($this->tag);
Expand Down
275 changes: 139 additions & 136 deletions composer.lock

Large diffs are not rendered by default.

Loading