Skip to content

Commit

Permalink
Fix: リアクション再インデックスでリモートのリアクションを含まないようにする (#542)
Browse files Browse the repository at this point in the history
  • Loading branch information
penginn-net authored Dec 3, 2024
1 parent 1a19bfb commit 4c7a281
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/backend/src/core/AdvancedSearchService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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,
});
Expand Down

0 comments on commit 4c7a281

Please sign in to comment.