1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-02 19:05:55 +02:00

feat: Playを検索できるように

#13115
This commit is contained in:
syuilo
2025-07-04 10:20:00 +09:00
parent b7a6301c2e
commit dd87d26bdc
12 changed files with 271 additions and 18 deletions

View File

@@ -101,7 +101,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
}
if (ps.search != null) {
for (const word of ps.search!.trim().split(' ')) {
for (const word of ps.search.trim().split(' ')) {
query.andWhere(new Brackets(qb => {
qb.orWhere('note.text ILIKE :search', { search: `%${sqlLikeEscape(word)}%` });
qb.orWhere('note.cw ILIKE :search', { search: `%${sqlLikeEscape(word)}%` });