The new message route want the display name now, not the id. Closes #2642.
authorTom Hughes <tom@compton.nu>
Sun, 17 Jan 2010 09:12:40 +0000 (09:12 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 17 Jan 2010 09:12:40 +0000 (09:12 +0000)
app/models/notifier.rb

index 7fc276042c54817aec620fdd6ad47efe5c2457f4..1f3d39808ecafcfd29a56debb63fe9dfc925dc7d 100644 (file)
@@ -84,7 +84,7 @@ class Notifier < ActionMailer::Base
          :replyurl => url_for(:host => SERVER_URL,
                               :controller => "message",
                               :action => "new",
-                              :user_id => comment.user.id,
+                              :display_name => comment.user.display_name,
                               :title => "Re: #{comment.diary_entry.title}")
   end