diff --git a/app/controllers/ajax/question_controller.rb b/app/controllers/ajax/question_controller.rb index e86e1572..5d10cf2f 100644 --- a/app/controllers/ajax/question_controller.rb +++ b/app/controllers/ajax/question_controller.rb @@ -41,7 +41,7 @@ class Ajax::QuestionController < AjaxController target_user_id: params[:rcpt], content: params[:question], anonymous: params[:anonymousQuestion], - author_identifier: AnonymousBlock.get_identifier(request.ip) + author_identifier: AnonymousBlock.get_identifier(request.remote_ip) ) end end diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 05b7ad28..64ed88c7 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -60,7 +60,7 @@ class ApplicationController < ActionController::Base if current_user.present? Sentry.set_user({ id: current_user.id }) else - Sentry.set_user({ ip_address: request.ip }) + Sentry.set_user({ ip_address: request.remote_ip }) end end end