From 4def9924d78a3da469c8188e68aae38c72a87b00 Mon Sep 17 00:00:00 2001 From: Jantso Porali Date: Mon, 10 Apr 2017 12:49:34 +0200 Subject: [PATCH] Fix for Import issue from URL (#1416) --- app/workers/import_worker.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/workers/import_worker.rb b/app/workers/import_worker.rb index d5a33cada3..ad4f1b004e 100644 --- a/app/workers/import_worker.rb +++ b/app/workers/import_worker.rb @@ -25,7 +25,7 @@ class ImportWorker def process_blocks(import) from_account = import.account - CSV.foreach(import.data.path) do |row| + CSV.new(open(import.data.url)).each do |row| next if row.size != 1 begin @@ -41,7 +41,7 @@ class ImportWorker def process_follows(import) from_account = import.account - CSV.foreach(import.data.path) do |row| + CSV.new(open(import.data.url)).each do |row| next if row.size != 1 begin