Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
QOTO
qoto
Commits
6ff2774f
Commit
6ff2774f
authored
Mar 21, 2020
by
Takeshi Umeda
Browse files
Modify follow limit 7500 -> 15000
parent
2a0fda8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
app/validators/follow_limit_validator.rb
app/validators/follow_limit_validator.rb
+1
-1
No files found.
app/validators/follow_limit_validator.rb
View file @
6ff2774f
# frozen_string_literal: true
class
FollowLimitValidator
<
ActiveModel
::
Validator
LIMIT
=
ENV
.
fetch
(
'MAX_FOLLOWS_THRESHOLD'
,
7_5
00
).
to_i
LIMIT
=
ENV
.
fetch
(
'MAX_FOLLOWS_THRESHOLD'
,
15_0
00
).
to_i
RATIO
=
ENV
.
fetch
(
'MAX_FOLLOWS_RATIO'
,
1.1
).
to_f
def
validate
(
follow
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment