diff --git a/packages/backend/src/core/AdvancedSearchService.ts b/packages/backend/src/core/AdvancedSearchService.ts index 9ca11d4833..2f8c816627 100644 --- a/packages/backend/src/core/AdvancedSearchService.ts +++ b/packages/backend/src/core/AdvancedSearchService.ts @@ -571,7 +571,8 @@ export class AdvancedSearchService { .where('reac.id > :latestid', { latestid }) .innerJoin('reac.user', 'user') .leftJoin('reac.note', 'note') - .select(['reac', 'user.host', 'note.searchableBy']) + .select(['reac', 'note.searchableBy']) + .andWhere('user.host IS NULL') .orderBy('reac.id', 'ASC') .limit(limit) .getMany(); @@ -581,7 +582,7 @@ export class AdvancedSearchService { noteId: reac.noteId, userId: reac.userId, reaction: reac.reaction, - remote: reac.user === null ? false : true, //user.host===nullなら userがnullになる + remote: false, reactionIncrement: false, searchableBy: reac.note?.searchableBy === null ? undefined : reac.note?.searchableBy, });