diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2020-12-18 09:18:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-18 09:18:31 +0100 |
commit | eb35be0431b2cdd2bbf3339beb9c5a0839e1088b (patch) | |
tree | 6e95bf9c68f7ce9b18c4a5ae404b484ef670655c /app/models/import.rb | |
parent | 941ff04b03a8a3e3f03e95c108f0cfa621226fb1 (diff) |
Fix follow limit preventing re-following of a moved account (#14207)
Diffstat (limited to 'app/models/import.rb')
-rw-r--r-- | app/models/import.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/import.rb b/app/models/import.rb index 702453289..00a54892e 100644 --- a/app/models/import.rb +++ b/app/models/import.rb @@ -27,6 +27,7 @@ class Import < ApplicationRecord enum type: [:following, :blocking, :muting, :domain_blocking, :bookmarks] validates :type, presence: true + validates_with ImportValidator, on: :create has_attached_file :data validates_attachment_content_type :data, content_type: FILE_TYPES |