mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 11:45:56 +00:00
remove AUTO_ASSIGN_LABELS (confusing, idiots keep enable it and complain of the results)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user