Skip to content

Commit

Permalink
feat: 検索対象にCWを含むように (#164)
Browse files Browse the repository at this point in the history
* 検索対象にCWを設定する

* update readme

---------

Co-authored-by: Esurio <esurio@esurio1673.net>
  • Loading branch information
1673beta and Esurio authored Sep 6, 2024
1 parent 8292975 commit 3880064
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG_engawa.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,22 @@
### Misc
-->
## 0.5.3

### Release Date

### General
-

### Client
-

### Server
- 検索対象にCWのテキストも含むように

### Misc


## 0.5.2

### Release Date
Expand Down
1 change: 1 addition & 0 deletions packages/backend/src/core/SearchService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export class SearchService {

query
.andWhere('note.text ILIKE :q', { q: `%${ sqlLikeEscape(q) }%` })
.orWhere('note.cw ILIKE :q', { q: `%${ sqlLikeEscape(q) }%` })
.innerJoinAndSelect('note.user', 'user')
.leftJoinAndSelect('note.reply', 'reply')
.leftJoinAndSelect('note.renote', 'renote')
Expand Down

0 comments on commit 3880064

Please sign in to comment.