This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

JSON: Include spam_* settings for subreddits

  • Loading branch information...
1 parent 16ad702 commit e041c348cd8951d933df9d76492a358feb53b06d Roger Ostrander committed Oct 3, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 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):

0 comments on commit e041c34

Please sign in to comment.