From fdcd3c20b64eb4c1a68175d85afb27154a9b21db Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Tue, 25 Feb 2014 10:35:37 -0500 Subject: [PATCH] Admin Quick Start Guide topic is visible only to staff in new sites --- db/fixtures/999_topics.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/fixtures/999_topics.rb b/db/fixtures/999_topics.rb index 24ad1ee21..62ea8d09a 100644 --- a/db/fixtures/999_topics.rb +++ b/db/fixtures/999_topics.rb @@ -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)