Merge pull request #930 from pixelfed/frontend-ui-refactor

Update DiscoverController
pull/936/head
daniel 8 years ago committed by GitHub
commit 37e44e488a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save