mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-02-21 05:36:56 +00:00
Update DiscoverController
This commit is contained in:
parent
96a6c063f2
commit
293b806afc
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue