Merge pull request #865 from pixelfed/frontend-ui-refactor

Update SearchController
This commit is contained in:
daniel 2019-02-21 23:11:06 -07:00 committed by GitHub
commit 17163c260a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();