mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 14:44:34 +08:00
FEATURE: remove support for 'suppress_from_latest' category setting. (#8308)
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
class Category < ActiveRecord::Base
|
||||
self.ignored_columns = %w{
|
||||
uploaded_meta_id
|
||||
suppress_from_latest
|
||||
}
|
||||
|
||||
include Searchable
|
||||
@ -72,7 +73,6 @@ class Category < ActiveRecord::Base
|
||||
after_save :clear_url_cache
|
||||
after_save :index_search
|
||||
after_save :update_reviewables
|
||||
after_save :clear_featured_cache
|
||||
|
||||
after_destroy :reset_topic_ids_cache
|
||||
after_destroy :publish_category_deletion
|
||||
@ -656,10 +656,6 @@ class Category < ActiveRecord::Base
|
||||
@@url_cache.clear
|
||||
end
|
||||
|
||||
def clear_featured_cache
|
||||
CategoryFeaturedTopic.clear_exclude_category_ids
|
||||
end
|
||||
|
||||
def full_slug(separator = "-")
|
||||
start_idx = "#{Discourse.base_uri}/c/".length
|
||||
url[start_idx..-1].gsub("/", separator)
|
||||
|
Reference in New Issue
Block a user