Removing option to make tags lowercase
...that's basically handled by the slugification
This commit is contained in:
parent
90870c07d4
commit
1b89b817e5
@ -26,7 +26,6 @@ allow_registration = boolean(default=True)
|
|||||||
|
|
||||||
# tag parsing
|
# tag parsing
|
||||||
tags_delimiter = string(default=",")
|
tags_delimiter = string(default=",")
|
||||||
tags_case_sensitive = boolean(default=False)
|
|
||||||
tags_max_length = integer(default=50)
|
tags_max_length = integer(default=50)
|
||||||
|
|
||||||
# By default not set, but you might want something like:
|
# By default not set, but you might want something like:
|
||||||
|
@ -9,7 +9,6 @@ db_name = __mediagoblin_tests__
|
|||||||
|
|
||||||
# tag parsing
|
# tag parsing
|
||||||
tags_delimiter = ","
|
tags_delimiter = ","
|
||||||
tags_case_sensitive = False
|
|
||||||
tags_max_length = 50
|
tags_max_length = 50
|
||||||
|
|
||||||
# Celery shouldn't be set up by the application as it's setup via
|
# Celery shouldn't be set up by the application as it's setup via
|
||||||
|
@ -405,12 +405,8 @@ def convert_to_tag_list_of_dicts(tag_string):
|
|||||||
# Ignore empty or duplicate tags
|
# Ignore empty or duplicate tags
|
||||||
if tag.strip() and tag.strip() not in [t['name'] for t in taglist]:
|
if tag.strip() and tag.strip() not in [t['name'] for t in taglist]:
|
||||||
|
|
||||||
if mg_globals.app_config['tags_case_sensitive']:
|
|
||||||
taglist.append({'name': tag.strip(),
|
taglist.append({'name': tag.strip(),
|
||||||
'slug': slugify(tag.strip())})
|
'slug': slugify(tag.strip())})
|
||||||
else:
|
|
||||||
taglist.append({'name': tag.strip().lower(),
|
|
||||||
'slug': slugify(tag.strip().lower())})
|
|
||||||
return taglist
|
return taglist
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user