mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Locale support for seeded categories and topics (#7110)
This commit is contained in:
@@ -29,11 +29,9 @@ class IntroductionUpdater
|
||||
end
|
||||
|
||||
def find_welcome_post
|
||||
topic_id = TopicCustomField
|
||||
.where(name: "is_welcome_topic", value: "true")
|
||||
.pluck(:topic_id)
|
||||
topic_id = SiteSetting.welcome_topic_id
|
||||
|
||||
if topic_id.blank?
|
||||
if topic_id <= 0
|
||||
title = I18n.t("discourse_welcome_topic.title")
|
||||
topic_id = find_topic_id(title)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user