1
0
Fork 0
forked from mirror/pixelfed

Update DiscoverController

This commit is contained in:
Daniel Supernault 2019-03-02 12:11:24 -07:00
parent d50e9c4df9
commit fdf7f0e121
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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;