From 34cdba6c111bdf9a4ea508fe5fc1dda43d04d6e3 Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Mon, 25 Dec 2023 11:56:00 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=87=AA=E5=88=86=E3=81=AEdirect=20note?= =?UTF-8?q?=E3=81=8Cuser=20list=20timeline=E3=81=AB=E8=BF=BD=E5=8A=A0?= =?UTF-8?q?=E3=81=95=E3=82=8C=E3=81=AA=E3=81=84=20(#12782)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 自分のdirect noteがuser list timelineに追加されない * docs(changelog): Fix: 自分のdirect noteがuser list timelineに追加されない --- CHANGELOG.md | 1 + packages/backend/src/core/NoteCreateService.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 432b39afb6..baff811e87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ ### General - Enhance: ローカリゼーションの更新 +- Fix: 自分のdirect noteがuser list timelineに追加されない ### Client - diff --git a/packages/backend/src/core/NoteCreateService.ts b/packages/backend/src/core/NoteCreateService.ts index 583fa97aff..6309313f11 100644 --- a/packages/backend/src/core/NoteCreateService.ts +++ b/packages/backend/src/core/NoteCreateService.ts @@ -1172,6 +1172,7 @@ export class NoteCreateService implements OnApplicationShutdown { // ダイレクトのとき、そのリストが対象外のユーザーの場合 if ( note.visibility === 'specified' && + note.userId !== userListMembership.userListUserId && !note.visibleUserIds.some(v => v === userListMembership.userListUserId) ) continue;