فهرست منبع

Update SearchController

Daniel Supernault 6 سال پیش
والد
کامیت
030ec4b825
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  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')
                 ->whereNull('status')
+                ->whereNull('domain')
                 ->where('username', 'like', '%'.$tag.'%')
-                ->orWhere('remote_url', $tag)
+                //->orWhere('remote_url', $tag)
                 ->limit(20)
                 ->get();