about summary refs log tree commit diff
path: root/app/workers/import_worker.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/import_worker.rb')
-rw-r--r--app/workers/import_worker.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/workers/import_worker.rb b/app/workers/import_worker.rb
index d7c126f75..aeb221cf6 100644
--- a/app/workers/import_worker.rb
+++ b/app/workers/import_worker.rb
@@ -37,6 +37,8 @@ class ImportWorker
   end
 
   def import_rows
-    CSV.new(import_contents).reject(&:blank?)
+    rows = CSV.new(import_contents).reject(&:blank?)
+    rows = rows.take(FollowLimitValidator.limit_for_account(@import.account)) if @import.type == 'following'
+    rows
   end
 end