Ticket #1394: message.patch

File message.patch, 626 bytes (added by Thomas Wood, 11 years ago)
  • app/controllers/message_controller.rb

     
    3535    @body = "On #{message.sent_on} #{message.sender.display_name} wrote:\n\n#{message.body.gsub(/^/, '> ')}"
    3636    @title = "Re: #{message.title.sub(/^Re:\s*/, '')}"
    3737    @user_id = message.from_user_id
     38    @to_user = User.find(message.to_user_id)
    3839    render :action => 'new'
    3940  rescue ActiveRecord::RecordNotFound
    4041    render :action => 'no_such_user', :status => :not_found