Commit 6ff2774f authored by Takeshi Umeda's avatar Takeshi Umeda
Browse files

Modify follow limit 7500 -> 15000

parent 2a0fda8c
# frozen_string_literal: true
class FollowLimitValidator < ActiveModel::Validator
LIMIT = ENV.fetch('MAX_FOLLOWS_THRESHOLD', 7_500).to_i
LIMIT = ENV.fetch('MAX_FOLLOWS_THRESHOLD', 15_000).to_i
RATIO = ENV.fetch('MAX_FOLLOWS_RATIO', 1.1).to_f
def validate(follow)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment