forked from mirror/pixelfed
Merge pull request #930 from pixelfed/frontend-ui-refactor
Update DiscoverController
This commit is contained in:
commit
37e44e488a
|
@ -32,9 +32,7 @@ class DiscoverController extends Controller
|
|||
'page' => 'nullable|integer|min:1|max:20',
|
||||
]);
|
||||
|
||||
$tag = Hashtag::with('posts')
|
||||
->withCount('posts')
|
||||
->whereSlug($hashtag)
|
||||
$tag = Hashtag::whereSlug($hashtag)
|
||||
->firstOrFail();
|
||||
|
||||
$page = $request->input('page') ?? 1;
|
||||
|
|
Loading…
Reference in New Issue