1
0
Fork 0
forked from mirror/pixelfed

Update DiscoverController, fixes #2378

This commit is contained in:
Daniel Supernault 2020-08-13 18:52:20 -06:00
parent 8b3aaaeea6
commit 8e7f4f9d88
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

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