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

NSFW issues #66

Closed
bboe opened this issue Feb 20, 2012 · 7 comments
Closed

NSFW issues #66

bboe opened this issue Feb 20, 2012 · 7 comments

Comments

@bboe
Copy link
Member

bboe commented Feb 20, 2012

There are two issues:

  • Non-authenticated users must provide an over18 cookie in order to access NSFW pages
  • I suspect authenticated users must have the over18 field enabled in their settings in order to access NSFW pages

Ideally we will provide a method for obtaining the over18 cookie and either automatically perform this when an over18 exception is raised (if possible) or prompt the user for action.

@marblar
Copy link

marblar commented Mar 2, 2012

I'll take a look at this over the weekend.

@bboe
Copy link
Member Author

bboe commented Mar 3, 2012

@marblar cool. What's the python 3 status? Should I start to integrate it?

@marblar
Copy link

marblar commented Mar 3, 2012

@bboe It's getting there. I have a bug or two to sort out, and then I want to do some clean up before we start integrating. If you want to take a look at the current state and make sure I'm headed in the right direction, you're welcome to.

@marblar
Copy link

marblar commented Mar 3, 2012

I was able to iterate through /r/nsfw without modification. Do you have any code to recreate the issue?

@bboe
Copy link
Member Author

bboe commented Mar 3, 2012

Well it seems like it is not a problem for a non-authenticated user. However, if you provide a user, the user must have the over18 setting enabled. We should raise a ClientException when the 403 restricted error occurs (if that's the only case of that error and it's the right one).

@bboe
Copy link
Member Author

bboe commented Apr 2, 2012

So there are some inconsistencies in the API with respect to the over18 setting. These being:

  • Non-authenticated users could access NSFW subreddit listings and submissions
  • Authenticated users who do not have the over18 setting enabled received empty NSFW subreddit listings but could access the NSFW submissiosn fine

After a brief chat with @spladug it seems ignoring the NSFW setting for API users is the simplest route to take, compared to the alternative which is to add an API error for attempting to access NSFW content when over18 is not enabled.

Waiting on reddit-archive/reddit#402 to go through.

@bboe
Copy link
Member Author

bboe commented Apr 3, 2012

NSFW is no longer an issue for the API. reddit-archive/reddit@07d8675

@bboe bboe closed this as completed Apr 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants