mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 06:13:40 +08:00
FIX: welcome topic should be uncategorized
This commit is contained in:
parent
3151f59bc9
commit
3690a24f7f
|
@ -9,6 +9,6 @@ if Topic.where('id NOT IN (SELECT topic_id from categories where topic_id is not
|
||||||
PostCreator.create(Discourse.system_user, raw: welcome, title: "Discourse Admin Quick Start Guide" ,skip_validations: true)
|
PostCreator.create(Discourse.system_user, raw: welcome, title: "Discourse Admin Quick Start Guide" ,skip_validations: true)
|
||||||
|
|
||||||
welcome = File.read(Rails.root + 'docs/WELCOME-TO-DISCOURSE.md')
|
welcome = File.read(Rails.root + 'docs/WELCOME-TO-DISCOURSE.md')
|
||||||
post = PostCreator.create(Discourse.system_user, category: 'Meta', raw: welcome, title: "Welcome to Discourse", skip_validations: true)
|
post = PostCreator.create(Discourse.system_user, raw: welcome, title: "Welcome to Discourse", skip_validations: true)
|
||||||
post.topic.update_pinned(true)
|
post.topic.update_pinned(true)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user