Update DiscoverController

This commit is contained in:
Daniel Supernault 2019-07-08 00:09:50 -06:00
parent 5b713a1e0f
commit d371c5a7de
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -130,7 +130,7 @@ class DiscoverController extends Controller
public function getHashtags(Request $request)
{
$auth = Auth::check();
abort_if(!config('instance.discover.tags.is_public') && $auth, 403);
abort_if(!config('instance.discover.tags.is_public') && !$auth, 403);
$this->validate($request, [
'hashtag' => 'required|alphanum|min:2|max:124',