A platform for community discussion. Free, open, simple.
FIX: Don't throw exception if welcome topic cannot be found
David Taylor7b089f7af453
diff --git a/lib/introduction_updater.rb b/lib/introduction_updater.rbindex 60de29f5318..002b52f06e0 100644--- a/lib/introduction_updater.rb+++ b/lib/introduction_updater.rb@@ -34,7 +34,7 @@ protectedtopic_id = Topic.listable_topics.where(slug: 'welcome-to-discourse').pluck(:id)end- welcome_topic = Topic.find(topic_id).first+ welcome_topic = Topic.where(id: topic_id).firstreturn nil unless welcome_topic.present?post = welcome_topic.posts.where(post_number: 1).first