Update DiscoverController

pull/1871/head
Daniel Supernault 6 years ago
parent 96a6c063f2
commit 293b806afc
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -115,8 +115,8 @@ class DiscoverController extends Controller
abort_if(!config('instance.discover.tags.is_public') && !$auth, 403);
$this->validate($request, [
'hashtag' => 'required|alphanum|min:2|max:124',
'page' => 'nullable|integer|min:1|max:' . ($auth ? 19 : 3)
'hashtag' => 'required|alphanum|min:1|max:124',
'page' => 'nullable|integer|min:1|max:' . ($auth ? 29 : 10)
]);
$page = $request->input('page') ?? '1';

Loading…
Cancel
Save