Update DiscoverController

This commit is contained in:
Daniel Supernault 2019-07-08 20:16:24 -06:00
parent 16b93eb315
commit 1b9b299927
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -138,7 +138,7 @@ class DiscoverController extends Controller
]);
$page = $request->input('page') ?? '1';
$end = $page > 1 ? $page * 9 : 0;
$end = $page > 1 ? $page * 9 : 1;
$tag = $request->input('hashtag');
$hashtag = Hashtag::whereName($tag)->firstOrFail();