Add comment.new hook.

This commit is contained in:
bsimpson63
2013-03-28 08:24:59 -04:00
committed by Neil Williams
parent 08ae778e9a
commit 1994ce083f

View File

@@ -771,6 +771,8 @@ class Comment(Thing, Printable):
orangered = (to.name != author.name)
inbox_rel = Inbox._add(to, c, name, orangered=orangered)
hooks.get_hook('comment.new').call(comment=c)
return (c, inbox_rel)
def _save(self, user):