mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 08:17:58 -05:00
Add hook to Printable.add_props.
This commit is contained in:
@@ -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 @@ class Printable(object):
|
||||
["scoredislikes", "scoreunvoted",
|
||||
"scorelikes"])
|
||||
|
||||
hooks.get_hook("add_props").call(items=wrapped)
|
||||
|
||||
@property
|
||||
def permalink(self, *a, **kw):
|
||||
raise NotImplementedError
|
||||
|
||||
Reference in New Issue
Block a user