mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 16:28:01 -05:00
Add comment.new hook.
This commit is contained in:
committed by
Neil Williams
parent
08ae778e9a
commit
1994ce083f
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user