summaryrefslogtreecommitdiff
path: root/packages/backend/src
diff options
context:
space:
mode:
author_ <phy.public@gmail.com>2024-01-07 09:57:01 +0900
committerGitHub <noreply@github.com>2024-01-07 09:57:01 +0900
commitf2dee7b25eb473796ff77e2abfae88f174fd5b90 (patch)
tree1e917b5e0020171058ea6ffac66a098feaa9148a /packages/backend/src
parentMerge branch 'develop' of https://github.com/misskey-dev/misskey into develop (diff)
downloadsharkey-f2dee7b25eb473796ff77e2abfae88f174fd5b90.tar.gz
sharkey-f2dee7b25eb473796ff77e2abfae88f174fd5b90.tar.bz2
sharkey-f2dee7b25eb473796ff77e2abfae88f174fd5b90.zip
Fix: リストライムラインの「リノートを表示」が正しく機能しない問題を修正 (#12932)
* fix: list timeline withRenotes * add CHANGELOG
Diffstat (limited to 'packages/backend/src')
-rw-r--r--packages/backend/src/server/api/stream/channels/user-list.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/backend/src/server/api/stream/channels/user-list.ts b/packages/backend/src/server/api/stream/channels/user-list.ts
index 909b5a5e03..e0245814c4 100644
--- a/packages/backend/src/server/api/stream/channels/user-list.ts
+++ b/packages/backend/src/server/api/stream/channels/user-list.ts
@@ -21,6 +21,7 @@ class UserListChannel extends Channel {
private membershipsMap: Record<string, Pick<MiUserListMembership, 'withReplies'> | undefined> = {};
private listUsersClock: NodeJS.Timeout;
private withFiles: boolean;
+ private withRenotes: boolean;
constructor(
private userListsRepository: UserListsRepository,
@@ -39,6 +40,7 @@ class UserListChannel extends Channel {
public async init(params: any) {
this.listId = params.listId as string;
this.withFiles = params.withFiles ?? false;
+ this.withRenotes = params.withRenotes ?? true;
// Check existence and owner
const listExist = await this.userListsRepository.exist({
@@ -104,6 +106,8 @@ class UserListChannel extends Channel {
}
}
+ if (note.renote && note.text == null && (note.fileIds == null || note.fileIds.length === 0) && !this.withRenotes) return;
+
// 流れてきたNoteがミュートしているユーザーが関わるものだったら無視する
if (isUserRelated(note, this.userIdsWhoMeMuting)) return;
// 流れてきたNoteがブロックされているユーザーが関わるものだったら無視する