Permalink
Browse files

Add comment.new hook.

  • Loading branch information...
1 parent 08ae778 commit 1994ce083f69458b2fcb9eb82777d356481c59ea @bsimpson63 bsimpson63 committed with spladug Mar 28, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 r2/r2/models/link.py
View
@@ -771,6 +771,8 @@ def _new(cls, author, link, parent, body, ip):
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):

0 comments on commit 1994ce0

Please sign in to comment.