Fix similar SQL error which triggers when mentioning people in new posts

This commit is contained in:
David Gabriel 2023-09-09 20:46:50 +02:00
parent 480394f3d8
commit 2e5c141724

View file

@ -415,7 +415,7 @@ class ComposeController extends Controller
$results = Profile::select('id','domain','username') $results = Profile::select('id','domain','username')
->whereNotIn('id', $blocked) ->whereNotIn('id', $blocked)
->where('username','like','%'.$q.'%') ->where('username','like','%'.$q.'%')
->groupBy('domain') ->groupBy('id', 'domain')
->limit(15) ->limit(15)
->get() ->get()
->map(function($profile) { ->map(function($profile) {