]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/message_controller.rb
Don't fill in from_display_name for messages - it can be got by
[rails.git] / app / controllers / message_controller.rb
index e9ad1968c295beb7c0afd9dd83b25e1fe06d3f2f..26102cc639faa8ef547566e8ce754b741e600fb1 100644 (file)
@@ -1,6 +1,6 @@
 class MessageController < ApplicationController
   layout 'site'
-  #  before_filter :authorize
+
   before_filter :authorize_web
   before_filter :require_user
 
@@ -14,7 +14,6 @@ class MessageController < ApplicationController
       message.body = body
       message.title = title
       message.to_user_id = params[:user_id]
-      message.from_display_name = to_user.display_name
       message.from_user_id = @user.id
       message.sent_on = Time.now