From d0e25f2e5b31c6842492946f164e77c1ca244c90 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 8 Feb 2018 06:35:02 +0100 Subject: [PATCH] Do not auto probe avatars in import mode (to increase import speed). --- app/models/user.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/user.rb b/app/models/user.rb index 90609c1ad..d7a6271a3 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1088,6 +1088,7 @@ raise 'Minimum one user need to have admin permissions' end def avatar_for_email_check + return true if Setting.get('import_mode') return true if email.blank? return true if email !~ /@/ return true if !saved_change_to_attribute?('email') && updated_at > Time.zone.now - 10.days