From e6c826fa2f17a900e06b316836326eee58330265 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 21 Feb 2015 13:08:50 +0300 Subject: remove AUTO_ASSIGN_LABELS (confusing, idiots keep enable it and complain of the results) --- include/rssfuncs.php | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'include') diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 9d3d89c7f..f80bcbb2b 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -1091,20 +1091,6 @@ db_query("COMMIT"); } - if (get_pref("AUTO_ASSIGN_LABELS", $owner_uid, false)) { - _debug("auto-assigning labels...", $debug_enabled); - - foreach ($labels as $label) { - $caption = preg_quote($label["caption"]); - - if ($caption && preg_match("/\b$caption\b/i", "$tags_str " . strip_tags($entry_content) . " $entry_title")) { - if (!labels_contains_caption($article_labels, $caption)) { - label_add_article($entry_ref_id, $caption, $owner_uid); - } - } - } - } - _debug("article processed", $debug_enabled); } -- cgit v1.2.3