This commit is contained in:
parent
1b66da505e
commit
f4fb82ba23
|
@ -206,7 +206,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 <@ note.tags`, { t: normalizeForSearch(defaultTag) });
|
||||
}
|
||||
}))
|
||||
.innerJoinAndSelect('note.user', 'user')
|
||||
|
|
|
@ -161,7 +161,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
|||
if (defaultTag == null) {
|
||||
qb.andWhere('note.userHost IS NULL');
|
||||
} else {
|
||||
qb.andWhere(`':t' = any(note.tags)`, { t: normalizeForSearch(defaultTag) });
|
||||
qb.andWhere(`:t <@ note.tags`, { t: normalizeForSearch(defaultTag) });
|
||||
}
|
||||
}))
|
||||
.innerJoinAndSelect('note.user', 'user')
|
||||
|
|
Loading…
Reference in New Issue