summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/api/stream/Connection.ts
diff options
context:
space:
mode:
authorおさむのひと <46447427+samunohito@users.noreply.github.com>2023-12-03 10:19:37 +0900
committerGitHub <noreply@github.com>2023-12-03 10:19:37 +0900
commitc68d87538a8486e5c236a142e42221c70b157861 (patch)
tree66e8a1eb6aa5c19a5276826661b86fb46d242c74 /packages/backend/src/server/api/stream/Connection.ts
parentfix: withChannelNotesとwithFilesを同時に指定したときの考慮 (#12... (diff)
downloadsharkey-c68d87538a8486e5c236a142e42221c70b157861.tar.gz
sharkey-c68d87538a8486e5c236a142e42221c70b157861.tar.bz2
sharkey-c68d87538a8486e5c236a142e42221c70b157861.zip
リストタイムラインでミュートが貫通してしまう問題に対処 (#12534)
* ユーザリストTL系の各種動作を修正・統一 * fix * fix CHANGELOG.md * テスト追加
Diffstat (limited to 'packages/backend/src/server/api/stream/Connection.ts')
-rw-r--r--packages/backend/src/server/api/stream/Connection.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/backend/src/server/api/stream/Connection.ts b/packages/backend/src/server/api/stream/Connection.ts
index 2d8fec30b1..4180ccc56a 100644
--- a/packages/backend/src/server/api/stream/Connection.ts
+++ b/packages/backend/src/server/api/stream/Connection.ts
@@ -36,6 +36,7 @@ export default class Connection {
public userIdsWhoMeMuting: Set<string> = new Set();
public userIdsWhoBlockingMe: Set<string> = new Set();
public userIdsWhoMeMutingRenotes: Set<string> = new Set();
+ public userMutedInstances: Set<string> = new Set();
private fetchIntervalId: NodeJS.Timeout | null = null;
constructor(
@@ -69,6 +70,7 @@ export default class Connection {
this.userIdsWhoMeMuting = userIdsWhoMeMuting;
this.userIdsWhoBlockingMe = userIdsWhoBlockingMe;
this.userIdsWhoMeMutingRenotes = userIdsWhoMeMutingRenotes;
+ this.userMutedInstances = new Set(userProfile.mutedInstances);
}
@bindThis