diff --git a/app/models/blog_comment.rb b/app/models/blog_comment.rb index ba31cc320..359522f9a 100644 --- a/app/models/blog_comment.rb +++ b/app/models/blog_comment.rb @@ -81,7 +81,7 @@ class BlogComment < ActiveRecord::Base if self.parent_id.nil? self.author.watcher_users.each do |watcher| Wechat.api.message_update_template watcher.id, "#{l(:label_new_blog_template)}", self.author.try(:realname) + " 发表了博客:" + self.title.html_safe, format_time(self.created_at) - + end else Wechat.api.comment_template self.parent.author_id, "#{l(:label_blog_comment_template)}", self.author.try(:realname), format_time(self.created_at), self.content.html_safe end