summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-02-28 14:13:18 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-02-28 14:13:18 +0900
commit57dde1da384121712391a02a6304c660d2a6b8a5 (patch)
tree9085d3667737232f06d81e4a278c10c5760d3695 /src/client
parentFix i18n (diff)
downloadsharkey-57dde1da384121712391a02a6304c660d2a6b8a5.tar.gz
sharkey-57dde1da384121712391a02a6304c660d2a6b8a5.tar.bz2
sharkey-57dde1da384121712391a02a6304c660d2a6b8a5.zip
Fix error
Diffstat (limited to 'src/client')
-rw-r--r--src/client/app/common/scripts/should-mute-note.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/app/common/scripts/should-mute-note.ts b/src/client/app/common/scripts/should-mute-note.ts
index 42e1679158..c5f1898942 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) =>