diff --git a/app/presenters/user_presenter.rb b/app/presenters/user_presenter.rb index 86d1bf6fc..df6707de2 100644 --- a/app/presenters/user_presenter.rb +++ b/app/presenters/user_presenter.rb @@ -40,7 +40,7 @@ class UserPresenter deleted_count = Post.for_user(user.id).deleted.where("created_at >= ?", 3.months.ago).count pending_count = Post.for_user(user.id).pending.where("created_at >= ?", 3.days.ago).count - approved_count = Post.where("is_flagged = false and is_pending = false and is_deleted = false and uploader_id = ? and created_at >= ?", user.id, 1.year.ago).count + approved_count = Post.where("is_flagged = false and is_pending = false and is_deleted = false and uploader_id = ? and created_at >= ?", user.id, 3.months.ago).count if user.base_upload_limit.to_i != 0 string = "max(base_upload_limit:#{user.base_upload_limit} - (deleted_count:#{deleted_count} / 4), 4) - pending_count:#{pending_count}"