-
Notifications
You must be signed in to change notification settings - Fork 4
💡 Feature request: landing page for NSFW subreddit when NSFW posts are disabled #13
Comments
Should this simply replace the code added in the PR? I doubt there will be a sub which has all posts NSFW but isn't deemed NSFW itself by reddit. And if so, I don't think it would be wrong to say "this sub is NSFW" even if technically reddit doesn't consider it NSFW. In practice they will still want to simply enable it in settings. |
Good point. That being said, if you were to do a search of just |
What do you think of this banner message?
|
That's a good start. I'm thinking we use the wall template (templates/wall.html). Here is a POC I came up with, with a message that I based on yours: <!-- MAIN CONTENT -->
<main>
<div id="wall">
<h1>r/:subreddit is a NSFW community</h1>
<br />
<p align="center">Enable "Show NSFW posts" in <a href="/settings" style="color: var(--accent)">settings</a> to view this subreddit.</p>
</div>
</main> Note that despite the reference to id |
Also, I gave it some thought and I think that, in addition to implementing this new landing page, we should keep the new changes to the subreddit page that alert users when all posts have been filtered due their NSFW preferences. There is a chance, however minimal, that all 25 latest/hot posts of a normally non-NSFW posts are NSFW. Even if that's an edge case, we still want to convey to the user that those posts are hidden because they have told libbacon not to show them. |
Builds off libreddit/libreddit#508 and #9. For subreddits that Reddit deems totally NSFW, we should have a landing page for NSFW subreddits that show nothing else but a message to tell the user to turn Show NSFW posts on if they want to view its contents. We can determine whether to do this in the JSON for
/r/:subreddit/about.json
, which we have to fetch anyway to show the subreddit info on the right; in that object,.data.over18
will betrue
.The text was updated successfully, but these errors were encountered: