fix typo (stupid 🇫🇷)
This commit is contained in:
parent
69f95df297
commit
20308ecfd9
|
@ -409,7 +409,7 @@ class PostAction < ActiveRecord::Base
|
||||||
|
|
||||||
def enforce_rules
|
def enforce_rules
|
||||||
post = Post.with_deleted.where(id: post_id).first
|
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)
|
PostAction.auto_hide_if_needed(user, post, post_action_type_key)
|
||||||
SpamRulesEnforcer.enforce!(post.user) if post_action_type_key == :spam
|
SpamRulesEnforcer.enforce!(post.user) if post_action_type_key == :spam
|
||||||
end
|
end
|
||||||
|
@ -422,7 +422,7 @@ class PostAction < ActiveRecord::Base
|
||||||
|
|
||||||
MAXIMUM_FLAGS_PER_POST = 3
|
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?
|
return if topic.closed?
|
||||||
|
|
||||||
flags = PostAction.active
|
flags = PostAction.active
|
||||||
|
|
Loading…
Reference in New Issue