Add (political checks)

This commit is contained in:
2023-11-28 19:32:42 +08:00
parent 50dce76e55
commit 21ae20a600
10 changed files with 66 additions and 2 deletions

View File

@@ -49,6 +49,8 @@ public static function handleSingle($rss_url, $hours = 3)
continue;
}
$blacklist_rss_post_keywords = array_merge($blacklist_rss_post_keywords, get_country_names(true));
foreach ($blacklist_rss_post_keywords as $blacklist_keyword)
{
if (str_contains(strtolower($title), $blacklist_keyword))