|
|
|
@ -162,7 +162,7 @@ class MessagesController < ApplicationController
|
|
|
|
|
@reply.subject = "RE: #{@topic.subject}" unless params[:reply][:subject]
|
|
|
|
|
@topic.children << @reply
|
|
|
|
|
user_activity = UserActivity.where("act_type='Message' and act_id =#{@topic.id}").first
|
|
|
|
|
user_activity.updated_at = @reply.created_on
|
|
|
|
|
user_activity.updated_at = Time.now
|
|
|
|
|
user_activity.save
|
|
|
|
|
#@topic.update_attribute(:updated_on, Time.now)
|
|
|
|
|
if !@reply.new_record?
|
|
|
|
|