ノート検索のホスト指定オプションの速度改善 (#16339)

Co-authored-by: misskey-release-bot[bot] <157398866+misskey-release-bot[bot]@users.noreply.github.com>
This commit is contained in:
果物リン
2025-08-01 17:48:26 +09:00
committed by GitHub
parent 7df0a6c55f
commit 99adf12355

View File

@@ -227,9 +227,9 @@ export class SearchService {
if (opts.host) {
if (opts.host === '.') {
query.andWhere('user.host IS NULL');
query.andWhere('note.userHost IS NULL');
} else {
query.andWhere('user.host = :host', { host: opts.host });
query.andWhere('note.userHost = :host', { host: opts.host });
}
}