search notes with denormalized userHost field
This commit is contained in:
@@ -287,9 +287,9 @@ export class SearchService {
|
|||||||
|
|
||||||
if (opts.host) {
|
if (opts.host) {
|
||||||
if (opts.host === '.') {
|
if (opts.host === '.') {
|
||||||
query.andWhere('user.host IS NULL');
|
query.andWhere('note.userHost IS NULL');
|
||||||
} else {
|
} else {
|
||||||
query.andWhere('user.host = :host', { host: opts.host });
|
query.andWhere('note.userHost = :host', { host: opts.host });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user