fix(backend): follow-up of 47db963 (#17231)

fix(backend): follow-up of 47db963d8d
This commit is contained in:
かっこかり
2026-03-09 18:21:25 +09:00
committed by GitHub
parent 47db963d8d
commit bc19359876

View File

@@ -209,7 +209,7 @@ export default class Connection {
// 自分自身ではないかつ
if (data.body.userId !== this.user?.id) {
// 公開範囲が指名で自分が含まれてない
if (data.body.visibility === 'specified' && !data.body.visibleUserIds.includes(this.user?.id ?? '')) {
if (data.body.visibility === 'specified' && (this.user == null || !data.body.visibleUserIds.includes(this.user.id))) {
return;
}