X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/d48b25124eaf561428176c60b79cc90e0a8e8125..eb89a462d4532cf6c6e2d2ae6370548adca1977a:/script/gravatar diff --git a/script/gravatar b/script/gravatar index e14e7ea0e..b86b79366 100755 --- a/script/gravatar +++ b/script/gravatar @@ -4,7 +4,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 == 0 # just give a rough indication where we are for restarting + 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? 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