Permalink
Browse files

POST_report: add hook

  • Loading branch information...
1 parent 7b24dac commit 09a402edc35d7340f109f4fb96be9e8c193d7e7e @Deimos Deimos committed with spladug Feb 12, 2014
Showing with 2 additions and 0 deletions.
  1. +2 −0 r2/r2/controllers/api.py
View
@@ -1286,6 +1286,8 @@ def POST_report(self, thing):
elif isinstance(thing, Comment):
pass
+ hooks.get_hook("thing.report").call(thing=thing)
+
sr = getattr(thing, 'subreddit_slow', None)
if (c.user._spam or
c.user.ignorereports or

0 comments on commit 09a402e

Please sign in to comment.