mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-21 03:30:42 +00:00
chore(backend): 非ログイン状態のケア
This commit is contained in:
@@ -207,9 +207,9 @@ export default class Connection {
|
||||
@bindThis
|
||||
private async onNoteStreamMessage(data: GlobalEvents['note']['payload']) {
|
||||
// 自分自身ではないかつ
|
||||
if (data.body.userId !== this.user!.id) {
|
||||
if (data.body.userId !== this.user?.id) {
|
||||
// 公開範囲が指名で自分が含まれてない
|
||||
if (data.body.visibility === 'specified' && !data.body.visibleUserIds.includes(this.user!.id)) {
|
||||
if (data.body.visibility === 'specified' && !data.body.visibleUserIds.includes(this.user?.id ?? '')) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user