improve blog comment replies

This commit is contained in:
jomo
2014-10-12 21:54:32 +02:00
parent 36792c6dc1
commit 5fcde67040
3 changed files with 19 additions and 7 deletions

View File

@@ -30,6 +30,10 @@ class Blogpost < ActiveRecord::Base
title
end
def can_comment? user
!user.nil? && user.confirmed?
end
def send_new_mention_mail(old_content = "")
new_mentions = mentions(content) - mentions(old_content)
mails = []