mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 10:58:38 +08:00
FIX: mbox import failed if no tags were configured
This commit is contained in:
parent
5bffb033df
commit
739430c01e
1 changed files with 1 additions and 1 deletions
|
@ -40,8 +40,8 @@ module ImportScripts::Mbox
|
||||||
@automatically_remove_list_name_prefix = yaml['automatically_remove_list_name_prefix']
|
@automatically_remove_list_name_prefix = yaml['automatically_remove_list_name_prefix']
|
||||||
@show_trimmed_content = yaml['show_trimmed_content']
|
@show_trimmed_content = yaml['show_trimmed_content']
|
||||||
|
|
||||||
if yaml['tags'].present?
|
|
||||||
@tags = []
|
@tags = []
|
||||||
|
if yaml['tags'].present?
|
||||||
yaml['tags'].each do |tag_name, value|
|
yaml['tags'].each do |tag_name, value|
|
||||||
prefixes = Regexp.union(value).source
|
prefixes = Regexp.union(value).source
|
||||||
@tags << {
|
@tags << {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue