X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/083500f056f5b995f1979f88b37793046d9e4d37..4f6735a513a568479a44480d04cab654d181b694:/script/gravatar diff --git a/script/gravatar b/script/gravatar index 59ecff4f8..2c2c2bd4b 100755 --- a/script/gravatar +++ b/script/gravatar @@ -5,7 +5,7 @@ start = 0 User.where("image_use_gravatar AND id >=" + start.to_s).order("id").find_each do |user| p "checked up to id " + user.id.to_s if (user.id % 1000).zero? # just give a rough indication where we are for restarting - next if user.image.present? + next if user.avatar.attached? hash = Digest::MD5.hexdigest(user.email.downcase) url = "https://www.gravatar.com/avatar/#{hash}?d=404" # without d=404 we will always get an image back