Sfoglia il codice sorgente

Update SearchController

Daniel Supernault 6 anni fa
parent
commit
030ec4b825
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      app/Http/Controllers/SearchController.php

+ 2 - 1
app/Http/Controllers/SearchController.php

@@ -70,8 +70,9 @@ class SearchController extends Controller
             }
             }
             $users = Profile::select('username', 'name', 'id')
             $users = Profile::select('username', 'name', 'id')
                 ->whereNull('status')
                 ->whereNull('status')
+                ->whereNull('domain')
                 ->where('username', 'like', '%'.$tag.'%')
                 ->where('username', 'like', '%'.$tag.'%')
-                ->orWhere('remote_url', $tag)
+                //->orWhere('remote_url', $tag)
                 ->limit(20)
                 ->limit(20)
                 ->get();
                 ->get();