mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 08:17:58 -05:00
wiki: Fix broken json template.
This commit is contained in:
@@ -584,7 +584,7 @@ class TrafficJsonTemplate(JsonTemplate):
|
||||
class WikiJsonTemplate(JsonTemplate):
|
||||
def render(self, thing, *a, **kw):
|
||||
try:
|
||||
content = thing.content
|
||||
content = thing.inner_content
|
||||
except AttributeError:
|
||||
content = thing.listing
|
||||
return ObjectTemplate(content.render() if thing else {})
|
||||
|
||||
Reference in New Issue
Block a user