]> git.wh0rd.org Git - tt-rss.git/commitdiff
do not auto-apply tags specified in BLACKLISTED_TAGS
authorAndrew Dolgov <fox@madoka.spb.ru>
Thu, 17 May 2007 07:47:00 +0000 (08:47 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Thu, 17 May 2007 07:47:00 +0000 (08:47 +0100)
functions.php

index 050780dd41db805c7f79d3d9c0d0f27d7d5616a7..3087b9b6ae8dc99791adca14f533db2f162711b4 100644 (file)
                                        }
                                }
 
+                               $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);
                                                }
                                        }