Admin Quick Start Guide topic is visible only to staff in new sites

This commit is contained in:
Neil Lalonde 2014-02-25 10:35:37 -05:00
parent 8134113b22
commit fdcd3c20b6
1 changed files with 2 additions and 1 deletions

View File

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