Merge pull request #5948 from maco/case-insensitive-tagging

[bug fix] use case insensitive search when tagging accounts
pull/5939/head
daniel 2025-04-20 14:00:59 -06:00 zatwierdzone przez GitHub
commit caf24907a2
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -268,10 +268,11 @@ class ComposeController extends Controller
$blocked->push($request->user()->profile_id);
$operator = config('database.default') === 'pgsql' ? 'ilike' : 'like';
$results = Profile::select('id', 'domain', 'username')
->whereNotIn('id', $blocked)
->whereNull('domain')
->where('username', 'like', '%'.$q.'%')
->where('username', $operator, '%'.$q.'%')
->limit(15)
->get()
->map(function ($r) {