diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-10-11 08:18:00 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-10-11 08:18:00 +0900 |
| commit | 1f0c27edf29b7f01c15a39d83a82bb3089afee36 (patch) | |
| tree | d1b2b71bef255bcc473b77c5f526149fc685c872 /packages/backend/src/core/NoteCreateService.ts | |
| parent | add tests (diff) | |
| download | sharkey-1f0c27edf29b7f01c15a39d83a82bb3089afee36.tar.gz sharkey-1f0c27edf29b7f01c15a39d83a82bb3089afee36.tar.bz2 sharkey-1f0c27edf29b7f01c15a39d83a82bb3089afee36.zip | |
fix(backend): フォローしているユーザーからの自分の投稿への返信がタイムラインに含まれない問題を修正
Diffstat (limited to 'packages/backend/src/core/NoteCreateService.ts')
| -rw-r--r-- | packages/backend/src/core/NoteCreateService.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/backend/src/core/NoteCreateService.ts b/packages/backend/src/core/NoteCreateService.ts index 2a73467122..5227ea7323 100644 --- a/packages/backend/src/core/NoteCreateService.ts +++ b/packages/backend/src/core/NoteCreateService.ts @@ -868,8 +868,8 @@ export class NoteCreateService implements OnApplicationShutdown { // 基本的にvisibleUserIdsには自身のidが含まれている前提であること if (note.visibility === 'specified' && !note.visibleUserIds.some(v => v === following.followerId)) continue; - // 自分自身以外への返信 - if (note.replyId && note.replyUserId !== note.userId) { + // 「自分自身への返信 or そのフォロワーへの返信」のどちらでもない場合 + if (note.replyId && !(note.replyUserId === note.userId || note.replyUserId === following.followerId)) { if (!following.withReplies) continue; } @@ -886,8 +886,8 @@ export class NoteCreateService implements OnApplicationShutdown { !note.visibleUserIds.some(v => v === userListMembership.userListUserId) ) continue; - // 自分自身以外への返信 - if (note.replyId && note.replyUserId !== note.userId) { + // 「自分自身への返信 or そのリストの作成者への返信」のどちらでもない場合 + if (note.replyId && !(note.replyUserId === note.userId || note.replyUserId === userListMembership.userListUserId)) { if (!userListMembership.withReplies) continue; } |