X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/721dd9c27d299455b9159457a095716f797389f1..898beb7b7f693cc21b329dab9a22268e3df77446:/app/controllers/message_controller.rb?ds=inline diff --git a/app/controllers/message_controller.rb b/app/controllers/message_controller.rb index d2fa9bd5f..c039fe636 100644 --- a/app/controllers/message_controller.rb +++ b/app/controllers/message_controller.rb @@ -35,6 +35,7 @@ class MessageController < ApplicationController @body = "On #{message.sent_on} #{message.sender.display_name} wrote:\n\n#{message.body.gsub(/^/, '> ')}" @title = "Re: #{message.title.sub(/^Re:\s*/, '')}" @user_id = message.from_user_id + @to_user = User.find(message.to_user_id) render :action => 'new' rescue ActiveRecord::RecordNotFound render :action => 'no_such_user', :status => :not_found