change user deletion scope from 120 days to 60 days

This commit is contained in:
r888888888
2015-10-19 13:23:18 -07:00
parent 8789aeb9d8
commit 09ca8df6b3
4 changed files with 5 additions and 5 deletions

View File

@@ -58,7 +58,7 @@ class UserPresenter
return "none"
end
dcon = [user.deletion_confidence(120), 15].min
dcon = [user.deletion_confidence(60), 15].min
multiplier = (1 - (dcon / 15.0))
max_count = [(user.base_upload_limit * multiplier).ceil, 5].max
uploaded_count = Post.for_user(user.id).where("created_at >= ?", 24.hours.ago).count