mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:14:12 +08:00
FEATURE: remove support for 'suppress_from_latest' category setting. (#8308)
This commit is contained in:
@ -275,7 +275,6 @@ class ImportScripts::DiscuzX < ImportScripts::Base
|
||||
description: row['description'],
|
||||
position: row['position'].to_i + max_position,
|
||||
color: color,
|
||||
suppress_from_latest: (row['status'] == (0) || row['status'] == (3)),
|
||||
post_create_action: lambda do |category|
|
||||
if slug = @category_slug[row['id']]
|
||||
category.update(slug: slug)
|
||||
@ -295,6 +294,10 @@ class ImportScripts::DiscuzX < ImportScripts::Base
|
||||
category.save!
|
||||
end
|
||||
end
|
||||
|
||||
if row['status'] == (0) || row['status'] == (3)
|
||||
SiteSetting.default_categories_muted = [SiteSetting.default_categories_muted, category.id].reject(&:blank?).join("|")
|
||||
end
|
||||
category
|
||||
end
|
||||
}
|
||||
|
Reference in New Issue
Block a user