From 20308ecfd9a66f65c56ebccc982e01d2c4e9cd0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Mon, 2 Feb 2015 21:55:44 +0100 Subject: [PATCH] fix typo (stupid :fr:) --- app/models/post_action.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/post_action.rb b/app/models/post_action.rb index a33f74d572b..1f10c6f26f8 100644 --- a/app/models/post_action.rb +++ b/app/models/post_action.rb @@ -409,7 +409,7 @@ class PostAction < ActiveRecord::Base def enforce_rules post = Post.with_deleted.where(id: post_id).first - PostAction.auto_close_if_treshold_reached(post.topic) + PostAction.auto_close_if_threshold_reached(post.topic) PostAction.auto_hide_if_needed(user, post, post_action_type_key) SpamRulesEnforcer.enforce!(post.user) if post_action_type_key == :spam end @@ -422,7 +422,7 @@ class PostAction < ActiveRecord::Base MAXIMUM_FLAGS_PER_POST = 3 - def self.auto_close_if_treshold_reached(topic) + def self.auto_close_if_threshold_reached(topic) return if topic.closed? flags = PostAction.active