Remove two disabled options from the subreddit settings page for
quarantined subreddits:
1. allow this subreddit to be included /r/all
2. show thumbnail images of content
These settings are stored independently of the quarantine state.
When a user visits a quarantined subreddit for the first time, they are
presented with a content gate so that they can choose to optin to view
the subreddit's content. This preference is remembered per subreddit.
If a user is logged out, it requires the user to log in before validating
that the user has chosen to opt in to view the subreddit.
Replaces the check against the allow_random property, which was a quick hack to
deal with a specific subreddit. Also removes allow_random from the _defaults dict
This attribute can only be set by a user in admin mode. If a non-admin user
creates a subreddit, it defaults to False. If a non-admin user is editing
the subreddit settings, the quarantine attribute defaults to the previous
value.
Just like with user-overriding, sometimes we want to be able to check whether a
feature flag is on for a specific subreddit while in a non-request context.
The function essentially did the same thing as `is_enabled()`, but with
overriding the user and not also checking the subreddit, subdomain, or oauth
client. The former is easily handled with default args, and the latter has
actually potentially been an issue - if you needed to override the user, you
lost the effect of any of those on the feature flag.
Turn subreddit ban into Y/N, removing the possibility for one click accidental bans.
Once a subreddit is banned, provides an option to override public ban message.
Adds a counter to count how many times a subreddit has been banned.
This was mainly a problem in dev with uncompressed scripts.
`rembeddit#init` was being invoke on script load without the callback before
the `'opened.r.popup'` event fired and setup the embed for previewing.
Previously it was part of the main memcache pool, but hardcache uses
keys that are invalid for ascii protocol so it was blocking switching
the main pool to ascii.