mirror of
https://github.com/kokonect-link/cherrypick
synced 2025-01-19 08:13:14 +09:00
fix(backend): ノート検索時にローカル/リモート設定が正しく動作しない
This commit is contained in:
parent
401faab8e3
commit
f63ec1987c
@ -55,6 +55,7 @@ Misskey의 전체 변경 사항을 확인하려면, [CHANGELOG.md#2023xx](CHANGE
|
||||
### Server
|
||||
- Revert: Feat: 이모티콘 중복 체크 (misskey-dev/misskey#11941)
|
||||
- Fix: Publish notes announced by relay (misskey-dev/misskey#11056)
|
||||
- Fix: 노트 검색 시 로컬/리모트 설정이 제대로 작동하지 않음
|
||||
|
||||
---
|
||||
|
||||
|
@ -196,9 +196,9 @@ export class SearchService {
|
||||
const query = this.queryService.makePaginationQuery(this.notesRepository.createQueryBuilder('note'), pagination.sinceId, pagination.untilId);
|
||||
|
||||
if (opts.origin === 'local') {
|
||||
query.andWhere('note.userHost IS NULL');
|
||||
query.andWhere('user.host IS NULL');
|
||||
} else if (opts.origin === 'remote') {
|
||||
query.andWhere('note.userHost IS NOT NULL');
|
||||
query.andWhere('user.host IS NOT NULL');
|
||||
}
|
||||
|
||||
if (opts.userId) {
|
||||
|
Loading…
Reference in New Issue
Block a user