X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/f7985046696958688b8a220a91c4b96ce16d4b65..db51d7f3dd3dfdceeb9f0f583e21d1f4e962f57c:/app/controllers/message_controller.rb diff --git a/app/controllers/message_controller.rb b/app/controllers/message_controller.rb index 155e619d7..b4cc6bfa8 100644 --- a/app/controllers/message_controller.rb +++ b/app/controllers/message_controller.rb @@ -29,6 +29,7 @@ class MessageController < ApplicationController @title = params[:title] end rescue ActiveRecord::RecordNotFound + @title = t'message.no_such_user.title' render :action => 'no_such_user', :status => :not_found end @@ -40,6 +41,7 @@ class MessageController < ApplicationController @to_user = User.find(message.from_user_id) render :action => 'new' rescue ActiveRecord::RecordNotFound + @title = t'message.no_such_user.title' render :action => 'no_such_user', :status => :not_found end @@ -50,6 +52,7 @@ class MessageController < ApplicationController @message.message_read = true if @message.to_user_id == @user.id @message.save rescue ActiveRecord::RecordNotFound + @title = t'message.no_such_user.title' render :action => 'no_such_user', :status => :not_found end @@ -90,6 +93,7 @@ class MessageController < ApplicationController end end rescue ActiveRecord::RecordNotFound + @title = t'message.no_such_user.title' render :action => 'no_such_user', :status => :not_found end end