diff --git a/crates/core/src/database/posts.rs b/crates/core/src/database/posts.rs index 824d600..5292bc2 100644 --- a/crates/core/src/database/posts.rs +++ b/crates/core/src/database/posts.rs @@ -481,6 +481,10 @@ impl DataManager { for mut post in posts.clone() { for phrase in muted { + if phrase.is_empty() { + continue; + } + if post.content.contains(phrase) { post.context.content_warning = "Contains muted phrase".to_string(); break;