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
1 changed files with 2 additions and 1 deletions

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