Skip to content

Commit

Permalink
Give up
Browse files Browse the repository at this point in the history
  • Loading branch information
user12986714 committed Jul 4, 2020
1 parent 9e77670 commit 94b8028
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/models/concerns/post_concerns/autoflagging.rb
Expand Up @@ -52,10 +52,13 @@ def autoflag
Rails.logger.warn "[autoflagging] #{id}: scaled maxes: #{scaled_maxes}"
if !scaled_maxes.nil? && scaled_maxes.count == 6
# Check historical accuracy
post_reasons_count = 0
post.reasons.each do |r|
post_reasons_count += 1
fake_flag_condition = FlagCondition.new(
sites: Site.mains,
max_poster_rep: post.user_reputation,
min_reason_count: post.reasons.count,
min_reason_count: post_reasons_count,
min_weight: post.reasons.sum(&:weight)
)

Expand Down

0 comments on commit 94b8028

Please sign in to comment.