From 8dea4b5fd90f66be54a17f6bfd5c2bc3380e0038 Mon Sep 17 00:00:00 2001 From: Marco Colli Date: Wed, 24 Dec 2014 11:52:12 +0100 Subject: [PATCH] Solve #5341 --- app/controllers/services_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/services_controller.rb b/app/controllers/services_controller.rb index 8baa56cfd..abfd50782 100644 --- a/app/controllers/services_controller.rb +++ b/app/controllers/services_controller.rb @@ -23,9 +23,9 @@ class ServicesController < ApplicationController service = Service.initialize_from_omniauth( omniauth_hash ) if current_user.services << service - current_user.update_profile_with_omniauth( service.info ) - - fetch_photo(service) if no_profile_image? + no_profile_image_before_update = no_profile_image? + current_user.update_profile_with_omniauth(service.info) + fetch_photo(service) if no_profile_image_before_update flash[:notice] = I18n.t 'services.create.success' else