From ae056509f7840cade8501a3b9c32e10f31806682 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 28 Feb 2019 14:13:18 +0900 Subject: [PATCH] Fix error --- src/client/app/common/scripts/should-mute-note.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/app/common/scripts/should-mute-note.ts b/src/client/app/common/scripts/should-mute-note.ts index 42e167915..c5f189894 100644 --- a/src/client/app/common/scripts/should-mute-note.ts +++ b/src/client/app/common/scripts/should-mute-note.ts @@ -1,5 +1,5 @@ export default function(me, settings, note) { - const isMyNote = note.userId == me.id; + const isMyNote = me && (note.userId == me.id); const isPureRenote = note.renoteId != null && note.text == null && note.fileIds.length == 0 && note.poll == null; const includesMutedWords = (text: string) =>