mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 08:13:16 +00:00
Merge pull request #930 from pixelfed/frontend-ui-refactor
Update DiscoverController
This commit is contained in:
commit
37e44e488a
1 changed files with 1 additions and 3 deletions
|
@ -32,9 +32,7 @@ class DiscoverController extends Controller
|
||||||
'page' => 'nullable|integer|min:1|max:20',
|
'page' => 'nullable|integer|min:1|max:20',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$tag = Hashtag::with('posts')
|
$tag = Hashtag::whereSlug($hashtag)
|
||||||
->withCount('posts')
|
|
||||||
->whereSlug($hashtag)
|
|
||||||
->firstOrFail();
|
->firstOrFail();
|
||||||
|
|
||||||
$page = $request->input('page') ?? 1;
|
$page = $request->input('page') ?? 1;
|
||||||
|
|
Loading…
Reference in a new issue