add parent_id to "more" things returned from morecomments.json

This fixes issue #423. morecomments already returns parent_ids, but the
.json version does not. Without parent_id, you cannot know at what
depth the "load more comments…" links should go
This commit is contained in:
Steve Wilber
2012-11-08 23:15:29 -08:00
committed by Neil Williams
parent bdad9c4635
commit 3a6db1d1e3

View File

@@ -413,7 +413,8 @@ class MoreCommentJsonTemplate(CommentJsonTemplate):
_data_attrs_ = dict(id = "_id36",
name = "_fullname",
children = "children",
count = "count")
count = "count",
parent_id = "parent_id")
def kind(self, wrapped):
return "more"