mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: proper category > subcategory order in List-Id description header
This commit is contained in:
parent
c450b70bcc
commit
bae7203f42
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue