Permalink
Browse files

Add hook to Printable.add_props.

  • Loading branch information...
1 parent 1994ce0 commit 3520ea53896bea61bc0e891fa366b0ae34f543e3 @spladug spladug committed Mar 24, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 r2/r2/models/printable.py
@@ -22,6 +22,9 @@
from pylons import c, request
from r2.lib.strings import Score
+from r2.lib import hooks
+
+
class Printable(object):
show_spam = False
show_reports = False
@@ -66,6 +69,8 @@ def add_props(cls, user, wrapped):
["scoredislikes", "scoreunvoted",
"scorelikes"])
+ hooks.get_hook("add_props").call(items=wrapped)
+
@property
def permalink(self, *a, **kw):
raise NotImplementedError

0 comments on commit 3520ea5

Please sign in to comment.