Skip to content
Snippets Groups Projects
Commit b56f4b27 authored by syuilo's avatar syuilo
Browse files

fix(backend): ストリーミングのLTLチャンネルでサーバー側にエラーログが出るのを修正

parent 2b19e1f7
No related branches found
No related tags found
No related merge requests found
......@@ -54,10 +54,10 @@ class LocalTimelineChannel extends Channel {
}
// 関係ない返信は除外
if (note.reply && !this.user!.showTimelineReplies) {
if (note.reply && this.user && !this.user.showTimelineReplies) {
const reply = note.reply;
// 「チャンネル接続主への返信」でもなければ、「チャンネル接続主が行った返信」でもなければ、「投稿者の投稿者自身への返信」でもない場合
if (reply.userId !== this.user!.id && note.userId !== this.user!.id && reply.userId !== note.userId) return;
if (reply.userId !== this.user.id && note.userId !== this.user.id && reply.userId !== note.userId) return;
}
// 流れてきたNoteがミュートしているユーザーが関わるものだったら無視する
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment