summaryrefslogtreecommitdiff
path: root/src/client/app/common/scripts/should-mute-note.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/app/common/scripts/should-mute-note.ts')
-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 a849135763..65d25d17cb 100644
--- a/src/client/app/common/scripts/should-mute-note.ts
+++ b/src/client/app/common/scripts/should-mute-note.ts
@@ -20,7 +20,7 @@ export default function(me, settings, note) {
}
}
- if (!isMyNote && note.text && settings.mutedWords.some(q => !q.some(word => !note.text.includes(word)))) {
+ if (!isMyNote && note.text && settings.mutedWords.some(q => q.length > 0 && !q.some(word => word == '' || !note.text.includes(word)))) {
return true;
}