]> git.openstreetmap.org Git - rails.git/blobdiff - script/gravatar
Use double quotes consistently in javascript code
[rails.git] / script / gravatar
index b86b793665d202cf3b511e71370c8170fca612d6..59ecff4f80424282a75079deb2c9591c1188c82a 100755 (executable)
@@ -6,6 +6,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?
+
   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
   response = OSM.http_client.get(URI.parse(url))