fix(stream): チャンネル接続主に見えないはずのノートが表示される問題を修正
This commit is contained in:
parent
464884c1ab
commit
1dde8653e8
9 changed files with 60 additions and 6 deletions
|
@ -68,6 +68,8 @@ class HomeTimelineChannel extends Channel {
|
|||
if (this.following[note.userId]?.withReplies) {
|
||||
// 自分のフォローしていないユーザーの visibility: followers な投稿への返信は弾く
|
||||
if (reply.visibility === 'followers' && !Object.hasOwn(this.following, reply.userId)) return;
|
||||
// 自分の見ることができないユーザーの visibility: specified な投稿への返信は弾く
|
||||
if (reply.visibility === 'specified' && !reply.visibleUserIds!.includes(this.user!.id)) return;
|
||||
} else {
|
||||
// 「チャンネル接続主への返信」でもなければ、「チャンネル接続主が行った返信」でもなければ、「投稿者の投稿者自身への返信」でもない場合
|
||||
if (reply.userId !== this.user!.id && !isMe && reply.userId !== note.userId) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue