about summary refs log tree commit diff
path: root/app/models/follow_request.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/follow_request.rb')
-rw-r--r--app/models/follow_request.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/follow_request.rb b/app/models/follow_request.rb
index 9c4875564..c5451a050 100644
--- a/app/models/follow_request.rb
+++ b/app/models/follow_request.rb
@@ -22,6 +22,7 @@ class FollowRequest < ApplicationRecord
   has_one :notification, as: :activity, dependent: :destroy
 
   validates :account_id, uniqueness: { scope: :target_account_id }
+  validates_with FollowLimitValidator, on: :create
 
   def authorize!
     account.follow!(target_account, reblogs: show_reblogs, uri: uri)