mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Admin Quick Start Guide topic is visible only to staff in new sites
This commit is contained in:
parent
8134113b22
commit
fdcd3c20b6
1 changed files with 2 additions and 1 deletions
|
@ -6,7 +6,8 @@ if Topic.where('id NOT IN (SELECT topic_id from categories where topic_id is not
|
|||
puts "Seeding welcome topics"
|
||||
|
||||
welcome = File.read(Rails.root + 'docs/ADMIN-QUICK-START-GUIDE.md')
|
||||
PostCreator.create(Discourse.system_user, raw: welcome, title: "Discourse Admin Quick Start Guide" ,skip_validations: true)
|
||||
post = PostCreator.create(Discourse.system_user, raw: welcome, title: "Discourse Admin Quick Start Guide", skip_validations: true)
|
||||
post.topic.update_column('visible', false)
|
||||
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue