1
0
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:
Andrew Dolgov
2015-06-17 23:18:12 +03:00
parent 6022776dac
commit fe4535e6d3
2 changed files with 5 additions and 39 deletions

View File

@@ -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) {