mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
FEATURE: Create legal topics for set company name (#21620)
Legal topics, such as the Terms of Service and Privacy Policy topics do not make sense if the entity creating the community is not a company. These topics will be created and updated only when the company name is present and deleted when it is not.
This commit is contained in:
@ -17,7 +17,7 @@ desc "ensure the asynchronously-created post_search_data index is present"
|
||||
task "annotate:ensure_all_indexes" => :environment do |task, args|
|
||||
# One of the indexes on post_search_data is created by a sidekiq job
|
||||
# We need to do some acrobatics to create it on-demand
|
||||
SeedData::Topics.with_default_locale.create(include_welcome_topics: true)
|
||||
SeedData::Topics.with_default_locale.create
|
||||
SiteSetting.search_enable_recent_regular_posts_offset_size = 1
|
||||
Jobs::CreateRecentPostSearchIndexes.new.execute([])
|
||||
end
|
||||
|
Reference in New Issue
Block a user