mirror of
https://github.com/discourse/discourse.git
synced 2025-02-08 04:18:23 +00:00
FIX: proper category > subcategory order in List-Id description header
This commit is contained in:
parent
c450b70bcc
commit
bae7203f42
@ -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}>"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user