|
|
|
@ -85,7 +85,7 @@ class MessagesController < ApplicationController
|
|
|
|
|
@reply.board = @board
|
|
|
|
|
@reply.safe_attributes = params[:reply]
|
|
|
|
|
@topic.children << @reply
|
|
|
|
|
@topic.update_attribute(:updated_on, Time.now)
|
|
|
|
|
#@topic.update_attribute(:updated_on, Time.now)
|
|
|
|
|
if !@reply.new_record?
|
|
|
|
|
call_hook(:controller_messages_reply_after_save, { :params => params, :message => @reply})
|
|
|
|
|
attachments = Attachment.attach_files(@reply, params[:attachments])
|
|
|
|
|