mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:24:41 +08:00
FIX: Move Welcome topic to I18n
This commit is contained in:
@ -42,8 +42,7 @@ if seed_welcome_topics
|
||||
|
||||
PostCreator.create(Discourse.system_user, raw: I18n.t('assets_topic_body'), title: "Assets for the site design", skip_validations: true, category: staff ? staff.name : nil)
|
||||
|
||||
welcome = File.read(Rails.root + 'docs/WELCOME-TO-DISCOURSE.md')
|
||||
post = PostCreator.create(Discourse.system_user, raw: welcome, title: "Welcome to Discourse", skip_validations: true)
|
||||
post = PostCreator.create(Discourse.system_user, raw: I18n.t('discourse_welcome_topic.body'), title: I18n.t('discourse_welcome_topic.title'), skip_validations: true)
|
||||
post.topic.update_pinned(true, true)
|
||||
|
||||
lounge = Category.find_by(id: SiteSetting.lounge_category_id)
|
||||
|
Reference in New Issue
Block a user