about summary refs log tree commit diff
path: root/app/models/follow.rb
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-12-19 02:17:02 +0100
committerGitHub <noreply@github.com>2020-12-19 02:17:02 +0100
commit79c57810b7fea1962c9746d74c90235ad4e3e899 (patch)
tree6ec332dd20fa4ce8de954d8e260cce3f2dc67aee /app/models/follow.rb
parent92cfcf168cae094ece281b3cb6d0f5b1539a8c25 (diff)
parent5c966bef8b6aa116cfa2102e83e42d0fe421f3fc (diff)
Merge pull request #1477 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/models/follow.rb')
-rw-r--r--app/models/follow.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/follow.rb b/app/models/follow.rb
index 55a9da792..69a1722b3 100644
--- a/app/models/follow.rb
+++ b/app/models/follow.rb
@@ -26,7 +26,7 @@ class Follow < ApplicationRecord
   has_one :notification, as: :activity, dependent: :destroy
 
   validates :account_id, uniqueness: { scope: :target_account_id }
-  validates_with FollowLimitValidator, on: :create
+  validates_with FollowLimitValidator, on: :create, if: :rate_limit?
 
   scope :recent, -> { reorder(id: :desc) }