diff --git a/lib/post_creator.rb b/lib/post_creator.rb index 6b1790b208a..39d9711cc33 100644 --- a/lib/post_creator.rb +++ b/lib/post_creator.rb @@ -238,7 +238,7 @@ class PostCreator SiteSetting.auto_close_topics_post_count <= @post.topic.posts_count @post.topic.update_status(:closed, true, Discourse.system_user, - message: I18n.t('topic_statuses.autoclosed_topic_max_posts', count: SiteSetting.auto_close_messages_post_count)) + message: I18n.t('topic_statuses.autoclosed_topic_max_posts', count: SiteSetting.auto_close_topics_post_count)) end end