1
0

search notes with denormalized userHost field

This commit is contained in:
Hazelnoot
2025-02-13 06:57:43 -05:00
parent 36545aea8b
commit a95bfb7241
+2 -2
View File
@@ -287,9 +287,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 });
}
}