Update AdminController, fix custom emoji domain search on postgres. Closes #4333

This commit is contained in:
Daniel Supernault 2023-05-03 00:10:08 -06:00
parent 96d4486abb
commit 3dac45f388
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -464,7 +464,9 @@ class AdminController extends Controller
->where('shortcode', 'like', '%' . $request->input('q') . '%') ->where('shortcode', 'like', '%' . $request->input('q') . '%')
->orWhere('domain', 'like', '%' . $request->input('q') . '%'); ->orWhere('domain', 'like', '%' . $request->input('q') . '%');
if(!$request->has('dups')) { if(!$request->has('dups')) {
$q = $q->groupBy('shortcode'); if(!$pg) {
$q = $q->groupBy('shortcode');
}
} }
return $q; return $q;
} }