1
0
Fork 0

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

Update SearchController
This commit is contained in:
daniel 2019-04-03 03:05:01 -06:00 committed by GitHub
commit 0f35547471
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -85,7 +85,8 @@ class SearchController extends Controller
->whereNull('status') ->whereNull('status')
->where('id', '!=', Auth::user()->profile->id) ->where('id', '!=', Auth::user()->profile->id)
->where('username', 'like', '%'.$tag.'%') ->where('username', 'like', '%'.$tag.'%')
->orWhere('remote_url', $tag) ->whereNull('domain')
//->orWhere('remote_url', $tag)
->limit(20) ->limit(20)
->get(); ->get();