|
|
|
@ -104,7 +104,11 @@ class BlogCommentsController < ApplicationController
|
|
|
|
|
@blogComment.title = "RE: #{@article.title}" unless params[:blog_comment][:title]
|
|
|
|
|
@article.children << @blogComment
|
|
|
|
|
@user_activity_id = params[:user_activity_id]
|
|
|
|
|
|
|
|
|
|
user_activity = UserActivity.where("act_type='BlogComment' and act_id =#{@article.id}").first
|
|
|
|
|
if user_activity
|
|
|
|
|
user_activity.updated_at = Time.now
|
|
|
|
|
user_activity.save
|
|
|
|
|
end
|
|
|
|
|
attachments = Attachment.attach_files(@blogComment, params[:attachments])
|
|
|
|
|
render_attachment_warning_if_needed(@blogComment)
|
|
|
|
|
#@article.save
|
|
|
|
|