From: Andrew Dolgov Date: Thu, 17 May 2007 07:47:00 +0000 (+0100) Subject: do not auto-apply tags specified in BLACKLISTED_TAGS X-Git-Tag: schema_freeze_for_1.2.11~23 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=8fc70781f85ac443f287f9541c235dab01c5b607;p=tt-rss.git do not auto-apply tags specified in BLACKLISTED_TAGS --- diff --git a/functions.php b/functions.php index 050780dd..3087b9b6 100644 --- a/functions.php +++ b/functions.php @@ -875,9 +875,12 @@ } } + $boring_tags = trim_array(split(",", get_pref($link, + 'BLACKLISTED_TAGS', $owner_uid, ''))); + if ($additional_tags && is_array($additional_tags)) { foreach ($additional_tags as $tag) { - if (tag_is_valid($tag)) { + if (tag_is_valid($tag) && !array_key_exists($tag, $boring_tags)) { array_push($entry_tags, $tag); } }