From a538d1d09acaa57cec88d00677619d799b8f0040 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 17 Apr 2019 23:10:39 -0600 Subject: [PATCH] Update SearchController --- app/Http/Controllers/SearchController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Http/Controllers/SearchController.php b/app/Http/Controllers/SearchController.php index 9892d513e..4bf750591 100644 --- a/app/Http/Controllers/SearchController.php +++ b/app/Http/Controllers/SearchController.php @@ -92,9 +92,9 @@ class SearchController extends Controller }); $users = Profile::select('username', 'name', 'id') ->whereNull('status') + ->whereNull('domain') ->where('id', '!=', Auth::user()->profile->id) ->where('username', 'like', '%'.$tag.'%') - ->whereNull('domain') //->orWhere('remote_url', $tag) ->limit(20) ->get(); @@ -129,7 +129,6 @@ class SearchController extends Controller ->whereNull('reblog_of_id') ->whereProfileId(Auth::user()->profile->id) ->where('caption', 'like', '%'.$tag.'%') - ->orWhere('uri', $tag) ->latest() ->limit(10) ->get();