From 90b17a39975c26b9a1a62ef57cb9bacc075d51d4 Mon Sep 17 00:00:00 2001 From: noellabo Date: Sun, 20 Nov 2022 19:09:45 +0900 Subject: [PATCH] Modify follow limit 15000 -> 30000 --- app/validators/follow_limit_validator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/validators/follow_limit_validator.rb b/app/validators/follow_limit_validator.rb index c15829506..88091f06d 100644 --- a/app/validators/follow_limit_validator.rb +++ b/app/validators/follow_limit_validator.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class FollowLimitValidator < ActiveModel::Validator - LIMIT = ENV.fetch('MAX_FOLLOWS_THRESHOLD', 15_000).to_i + LIMIT = ENV.fetch('MAX_FOLLOWS_THRESHOLD', 30_000).to_i RATIO = ENV.fetch('MAX_FOLLOWS_RATIO', 1.1).to_f def validate(follow)