FEATURE: Locale support for seeded categories and topics (#7110)

This commit is contained in:
Gerhard Schlager
2019-03-18 21:09:13 +01:00
committed by GitHub
parent d91b47064e
commit 3fd04df781
33 changed files with 985 additions and 353 deletions

View File

@ -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