mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-20 10:11:29 +00:00
bayes, filter: do not categorize already processed articles
rss: remove site url/title checks from update_rss_feed
This commit is contained in:
@@ -266,6 +266,10 @@ class Af_Sort_Bayes extends Plugin {
|
||||
$nbs = new NaiveBayesianStorage($owner_uid);
|
||||
$nb = new NaiveBayesian($nbs);
|
||||
|
||||
$ref = $nbs->getReference($article["guid"], false);
|
||||
|
||||
if (isset($ref["category_id"])) return $article; // already categorized
|
||||
|
||||
$categories = $nbs->getCategories();
|
||||
|
||||
if (count($categories) > 0) {
|
||||
|
||||
Reference in New Issue
Block a user