Modify follow limit 15000 -> 30000

This commit is contained in:
noellabo 2022-11-20 19:09:45 +09:00
parent ab79b58443
commit 90b17a3997

View file

@ -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)