-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
リストタイムラインでミュートが貫通してしまう問題に対処 #12534
リストタイムラインでミュートが貫通してしまう問題に対処 #12534
Conversation
このPRによるapi.jsonの差分 差分はこちら |
@@ -135,8 +138,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- | |||
.leftJoinAndSelect('note.reply', 'reply') | |||
.leftJoinAndSelect('note.renote', 'renote') | |||
.leftJoinAndSelect('reply.user', 'replyUser') | |||
.leftJoinAndSelect('renote.user', 'renoteUser') | |||
.leftJoinAndSelect('note.channel', 'channel'); | |||
.leftJoinAndSelect('renote.user', 'renoteUser'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
チャンネル投稿はそもそもuserListTimelineに配信されていないように見受けられるので省きました
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #12534 +/- ##
===========================================
+ Coverage 78.73% 78.77% +0.03%
===========================================
Files 952 952
Lines 103602 103619 +17
Branches 8328 8345 +17
===========================================
+ Hits 81573 81621 +48
+ Misses 22029 21998 -31 ☔ View full report in Codecov by Sentry. |
@@ -69,6 +70,7 @@ export default class Connection { | |||
this.userIdsWhoMeMuting = userIdsWhoMeMuting; | |||
this.userIdsWhoBlockingMe = userIdsWhoBlockingMe; | |||
this.userIdsWhoMeMutingRenotes = userIdsWhoMeMutingRenotes; | |||
this.userMutedInstances = new Set(userProfile.mutedInstances); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
userProfileのキャッシュは独立して存在していますが、ストリーミングの頻度で毎度Setを作るのも無駄な気がしたのでSetを作成してキャッシュしています
ストリーミング部分のテストも追加してもらえるといいかもしれません🙏 |
# Conflicts: # packages/backend/src/server/api/endpoints/notes/user-list-timeline.ts
👍👍👍 |
* ユーザリストTL系の各種動作を修正・統一 * fix * fix CHANGELOG.md * テスト追加
What
#10443 の対処です。
この対応により、リストタイムラインにてユーザミュート、サーバミュートが機能するようになり、
チャンネル投稿がストリーミングに流れなくなります。
もとのIssueでは
…とまとめていますが、チャンネル投稿は元々リロード時やFTT有効時の読み込み対象としない意図が明示されている実装がありましたため、チャンネル投稿は含めない形としています。
(なのでストリーミング側でチャンネル投稿が漏れるのを塞ぐ方針で対応)
Why
fix #10443
Additional info (optional)
ユーザミュートとチャンネル投稿についてはローカルで確認しました。
サーバミュートについては、連合に参加している環境が手元になく確認できていません。
Checklist