talklittle / reddit-is-fun

OLD VERSION 1.3 of reddit is fun -- Android app to interact with reddit.com
GNU General Public License v3.0
371 stars 156 forks source link

Fix NSFW reddits "are you over 18?" page #172

Open talklittle opened 13 years ago

talklittle commented 13 years ago

"I've noticed that browsing NSFW reddits doesn't. seem to work - specifically wherever you would be served the 'are you over 18?' page. Does Reddit is fun just not handle this event, or does it rely on a browser cookie?"

talklittle commented 12 years ago

May be phone model/carrier dependent. My Verizon Droid 1 gets to them fine. Chrome also gets to the JSON with no issue.

talklittle commented 12 years ago

it is NOT phone/carrier dependent. When I created a new user, I reproduced the bug

talklittle commented 12 years ago

Unfortunately the API doesn't really give enough information to tell that the NSFW warning is the reason for 0 threads showing up. It looks like a regular Listing JSON with an empty children list. (/api/me.json doesn't have anything relevant either)

So, removing milestone for this issue. Won't fix until API is expanded--does not make sense to try to figure out if every subreddit is NSFW and account for that in some hackish way, parsing the HTML or whatever.

talklittle commented 12 years ago

Actually it's simpler--just a per-user setting. In that case, maybe it makes sense to have a prefs page mapping to reddit preferences.

https://ssl.reddit.com/prefs/ look for and can tell by checked="checked" if enabled or disabled.

and POST to https://ssl.reddit.com/post/options