Add 'likes' for comment/post replies in API

This commit is contained in:
Chad Birch
2013-04-10 11:40:26 -06:00
parent 886226995b
commit 83100a9827

View File

@@ -499,6 +499,7 @@ class MessageJsonTemplate(ThingJsonTemplate):
d = ThingJsonTemplate.raw_data(self, thing)
if thing.was_comment:
d['link_title'] = thing.link_title
d['likes'] = thing.likes
return d
def rendered_data(self, wrapped):