- @readurl = url_for(:host => SERVER_URL,
- :controller => "message", :action => "read",
- :message_id => message.id)
- @replyurl = url_for(:host => SERVER_URL,
- :controller => "message", :action => "reply",
- :message_id => message.id)
+ @readurl = message_url(message)
+ @replyurl = reply_message_url(message)
+ @author = @from_user
+
+ attach_user_avatar(message.sender)