博客回复

This commit is contained in:
lizanle 2015-12-17 10:19:43 +08:00
parent 8d58b045f1
commit c183574a5e
1 changed files with 1 additions and 0 deletions

View File

@ -118,6 +118,7 @@ class BlogCommentsController < ApplicationController
@blogComment.content = @quote + @blogComment.content
@blogComment.title = "RE: #{@article.title}" unless params[:blog_comment][:title]
@article.children << @blogComment
@article.save
@user_activity_id = params[:user_activity_id]
user_activity = UserActivity.where("act_type='BlogComment' and act_id =#{@article.id}").first
if user_activity