A space is required before '}'

This commit is contained in:
Tatsuya Koishi 2024-01-28 10:43:43 +09:00
parent 57d2368ba5
commit 167f90f0b9

View file

@ -205,7 +205,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
if (defaultTag == null) {
qb.orWhere('(note.visibility = \'public\') AND (note.userHost IS NULL)');
} else {
qb.orWhere(`(note.visibility = 'public') AND (':t' = any(note.tags)`, { t: normalizeForSearch(defaultTag)} );
qb.orWhere(`(note.visibility = 'public') AND (':t' = any(note.tags)`, { t: normalizeForSearch(defaultTag) });
}
}))
.innerJoinAndSelect('note.user', 'user')