FIX: proper category > subcategory order in List-Id description header

This commit is contained in:
Régis Hanol 2018-05-05 01:51:53 +02:00
parent c450b70bcc
commit bae7203f42

View File

@ -119,7 +119,7 @@ module Email
# subcategory case # subcategory case
if !topic.category.parent_category_id.nil? if !topic.category.parent_category_id.nil?
parent_category_name = Category.find_by(id: topic.category.parent_category_id).name parent_category_name = Category.find_by(id: topic.category.parent_category_id).name
list_id = "#{SiteSetting.title} | #{topic.category.name} #{parent_category_name} <#{topic.category.name.downcase.tr(' ', '-')}.#{parent_category_name.downcase.tr(' ', '-')}.#{host}>" list_id = "#{SiteSetting.title} | #{parent_category_name} #{topic.category.name} <#{topic.category.name.downcase.tr(' ', '-')}.#{parent_category_name.downcase.tr(' ', '-')}.#{host}>"
end end
else else
list_id = "#{SiteSetting.title} <#{host}>" list_id = "#{SiteSetting.title} <#{host}>"