Do not lookup avatars on import.

This commit is contained in:
Martin Edenhofer 2014-12-01 13:06:47 +01:00
parent e991dd067b
commit 19bb9415ed

View file

@ -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?