From 19bb9415ed948bf412f89a40cea4dd560141a534 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 1 Dec 2014 13:06:47 +0100 Subject: [PATCH] Do not lookup avatars on import. --- app/models/avatar.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/avatar.rb b/app/models/avatar.rb index 27e962517..bf973757c 100644 --- a/app/models/avatar.rb +++ b/app/models/avatar.rb @@ -19,6 +19,10 @@ add a avatar based on auto detection (email address) =end def self.auto_detection(data) + + # return if we run import mode + return if Setting.get('import_mode') + return if !data[:url] return if data[:url].empty?