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')
->whereNotIn('id', $blocked)
->where('username','like','%'.$q.'%')
->groupBy('domain')
->groupBy('id', 'domain')
->limit(15)
->get()
->map(function($profile) {