Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reddit: spoiler update #1620

Merged
merged 1 commit into from
Jul 25, 2019
Merged

reddit: spoiler update #1620

merged 1 commit into from
Jul 25, 2019

Conversation

dgw
Copy link
Member

@dgw dgw commented May 24, 2019

A couple years ago, reddit added support for marking posts/links as "spoiler", obsoleting the hack that I guess some subs were using. No longer does the NSFW (over_18) flag need to do double duty!

This frees the Sopel project from having to maintain a list of spoiler-enabled subreddits (which was apparently never updated, anyway).

Channels can also be marked as "spoiler-free" now, separately from their "sfw" status. You can have a safe-for-work channel that still allows spoilers, or a spoiler-free channel that still allows lewds. Freedom!

This is a draft for now, because it's based on #1505's branch. Once that's merged, I'll promote this to "ready for review". Feel free to bikeshed in the meantime—especially command name.

Additional code cleanup could stand to happen—this plugin doesn't really make use of all the decorators that it should (such as checking for OP). I'll do a minor refactor after #1539 is merged, to modernize as much as possible all at once.

@dgw dgw added the Feature label May 24, 2019
@dgw dgw added this to the 7.0.0 milestone May 24, 2019
sopel/modules/reddit.py Outdated Show resolved Hide resolved
@dgw dgw marked this pull request as ready for review June 21, 2019 06:06
A couple years ago, reddit added support for marking posts/links as
"spoiler", obsoleting the hack that I guess some subs were using. No
longer does the NSFW (`over_18`) flag need to do double duty!

This frees the Sopel project from having to maintain a list of spoiler-
enabled subreddits (which was apparently never updated, anyway).

Channels can also be marked as "spoiler-free" now, separately from their
"sfw" status. You can have a safe-for-work channel that still allows
spoilers, or a spoiler-free channel that still allows lewds. Freedom!
@dgw dgw merged commit 4b25c16 into master Jul 25, 2019
@dgw dgw deleted the reddit-spoiler-update branch July 25, 2019 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants