This commit is contained in:
parent
e420be8ee9
commit
5a3b68816a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue