This commit is contained in:
huang 2015-09-24 17:18:58 +08:00
parent b66de0ee9f
commit 1e8cb91ab4
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ class MessagesController < ApplicationController
@reply.safe_attributes = params[:reply] @reply.safe_attributes = params[:reply]
@reply.content = @quote + @reply.content @reply.content = @quote + @reply.content
@reply.subject = "RE: #{@topic.subject}" unless params[:reply][:subject] @reply.subject = "RE: #{@topic.subject}" unless params[:reply][:subject]
@reply.reply_id = @message.author # @reply.reply_id = params[:id]
@topic.children << @reply @topic.children << @reply
user_activity = UserActivity.where("act_type='Message' and act_id =#{@topic.id}").first user_activity = UserActivity.where("act_type='Message' and act_id =#{@topic.id}").first
user_activity.updated_at = Time.now user_activity.updated_at = Time.now