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.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/follow_request.rb b/app/models/follow_request.rb
index 96ac7eaa5..3325e264c 100644
--- a/app/models/follow_request.rb
+++ b/app/models/follow_request.rb
@@ -15,6 +15,9 @@
 class FollowRequest < ApplicationRecord
   include Paginable
   include RelationshipCacheable
+  include RateLimitable
+
+  rate_limit by: :account, family: :follows
 
   belongs_to :account
   belongs_to :target_account, class_name: 'Account'