mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FEATURE: add category suppress from latest
In the past we used suppress_from_homepage, it had mixed semantics it would remove from category list if category list was on home and unconditionally remove from latest. New setting explicitly only removes from latest list but leaves the category list alond
This commit is contained in:
@ -273,7 +273,7 @@ class ImportScripts::DiscuzX < ImportScripts::Base
|
||||
description: row['description'],
|
||||
position: row['position'].to_i + max_position,
|
||||
color: color,
|
||||
suppress_from_homepage: (row['status'] == (0) || row['status'] == (3)),
|
||||
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)
|
||||
|
Reference in New Issue
Block a user