]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
Add tests for change of gravatar use depending on email
[rails.git] / app / controllers / user_controller.rb
index 426a9642472256f079c846ae45d252213d5cd09c..a7fcdb26d802b8d5ffb50f086ccb29289b7b3f2c 100644 (file)
@@ -808,7 +808,7 @@ class UserController < ApplicationController
     # code from example https://en.gravatar.com/site/implement/images/ruby/
     return 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
+    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))
     oldsetting = user.image_use_gravatar
     user.image_use_gravatar = response.success?