From 348bad9f461ec8441f36630f19ce5ade65981561 Mon Sep 17 00:00:00 2001 From: KeyserSosa Date: Thu, 24 Jul 2008 13:45:37 -0700 Subject: [PATCH] fix for failure when JSON requesting a comment page with 'more comments' links. --- r2/r2/lib/jsontemplates.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/r2/r2/lib/jsontemplates.py b/r2/r2/lib/jsontemplates.py index 7850ca1b2..9fbd7f74d 100644 --- a/r2/r2/lib/jsontemplates.py +++ b/r2/r2/lib/jsontemplates.py @@ -182,9 +182,14 @@ class CommentJsonTemplate(ThingJsonTemplate): return d class MoreCommentJsonTemplate(CommentJsonTemplate): + __data_attrs__ = dict(id = "_id36", + name = "_fullname") def points(self, wrapped): return [] + def kind(self, wrapped): + return "more" + class MessageJsonTemplate(ThingJsonTemplate): __data_attrs__ = dict(id = "_id36", name = "_fullname",