From e041c348cd8951d933df9d76492a358feb53b06d Mon Sep 17 00:00:00 2001 From: Roger Ostrander Date: Thu, 3 Oct 2013 12:04:31 -0700 Subject: [PATCH] JSON: Include spam_* settings for subreddits --- r2/r2/lib/jsontemplates.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/r2/r2/lib/jsontemplates.py b/r2/r2/lib/jsontemplates.py index 159fc9562..6329d27c5 100755 --- a/r2/r2/lib/jsontemplates.py +++ b/r2/r2/lib/jsontemplates.py @@ -247,6 +247,9 @@ class SubredditJsonTemplate(ThingJsonTemplate): user_is_contributor="is_contributor", user_is_moderator="is_moderator", user_is_subscriber="is_subscriber", + spam_links='spam_links', + spam_selfposts='spam_selfposts', + spam_comments='spam_comments', ) # subreddit *attributes* (right side of the equals) @@ -870,6 +873,9 @@ class SubredditSettingsTemplate(ThingJsonTemplate): wiki_edit_age='site.wiki_edit_age', wiki_edit_karma='site.wiki_edit_karma', wikimode='site.wikimode', + spam_links='site.spam_links', + spam_selfposts='site.spam_selfposts', + spam_comments='site.spam_comments', ) def kind(self, wrapped):