mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-26 06:10:20 +01:00
This commit is contained in:
parent
1b66da505e
commit
f4fb82ba23
2 changed files with 2 additions and 2 deletions
|
@ -206,7 +206,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
if (defaultTag == null) {
|
if (defaultTag == null) {
|
||||||
qb.orWhere('(note.visibility = \'public\') AND (note.userHost IS NULL)');
|
qb.orWhere('(note.visibility = \'public\') AND (note.userHost IS NULL)');
|
||||||
} else {
|
} 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')
|
.innerJoinAndSelect('note.user', 'user')
|
||||||
|
|
|
@ -161,7 +161,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
if (defaultTag == null) {
|
if (defaultTag == null) {
|
||||||
qb.andWhere('note.userHost IS NULL');
|
qb.andWhere('note.userHost IS NULL');
|
||||||
} else {
|
} else {
|
||||||
qb.andWhere(`':t' = any(note.tags)`, { t: normalizeForSearch(defaultTag) });
|
qb.andWhere(`:t <@ note.tags`, { t: normalizeForSearch(defaultTag) });
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
.innerJoinAndSelect('note.user', 'user')
|
.innerJoinAndSelect('note.user', 'user')
|
||||||
|
|
Loading…
Reference in a new issue