Skip to content

Commit

Permalink
Fix: kokonect-link#449 で変えた部分の修正 (kokonect-link#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
penginn-net authored Oct 17, 2024
1 parent adb2189 commit 7abb4ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG_YOJO.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Cherrypick 4.11.1
### Server
- Enhance: リモートユーザーの`/api/clips/show``/api/users/clips`の応答にemojisを追加 [#466](https://github.com/yojo-art/cherrypick/pull/466)
- Change: `notes/advanced-search``query`が必須ではなくなりました
- Fix: (Opensearch利用時)高度な検索でリプライ除外にするとエラーがでる

### Misc

Expand Down
3 changes: 2 additions & 1 deletion packages/backend/src/core/AdvancedSearchService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,8 @@ export class AdvancedSearchService {
}
if (opts.excludeReply) osFilter.bool.must_not.push({ exists: { field: 'replyId' } });
if (opts.excludeCW) osFilter.bool.must_not.push({ exists: { field: 'cw' } });
if (opts.excludeQuote) osFilter.bool.must.push({ term: { field: 'renoteId' } });
if (opts.excludeQuote) osFilter.bool.must_not.push({ exists: { field: 'renoteId' } });

if (opts.fileOption) {
if (opts.fileOption === 'file-only') {
osFilter.bool.must.push({ exists: { field: 'fileIds' } });
Expand Down

0 comments on commit 7abb4ab

Please sign in to comment.