mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-05 03:00:15 -04:00
Add 'likes' for comment/post replies in API
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user