do not auto-apply tags specified in BLACKLISTED_TAGS

This commit is contained in:
Andrew Dolgov 2007-05-17 08:47:00 +01:00
parent 1eb19b6adc
commit 8fc70781f8
1 changed files with 4 additions and 1 deletions

View File

@ -875,9 +875,12 @@
} }
} }
$boring_tags = trim_array(split(",", get_pref($link,
'BLACKLISTED_TAGS', $owner_uid, '')));
if ($additional_tags && is_array($additional_tags)) { if ($additional_tags && is_array($additional_tags)) {
foreach ($additional_tags as $tag) { 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); array_push($entry_tags, $tag);
} }
} }