Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

JSON: Include spam_* settings for subreddits

  • Loading branch information...
commit e041c348cd8951d933df9d76492a358feb53b06d 1 parent 16ad702
Roger Ostrander authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 r2/r2/lib/jsontemplates.py
View
6 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):
Please sign in to comment.
Something went wrong with that request. Please try again.