Closed pdehaan closed 2 years ago
Interesting, it also looks like there is a Rating
header (albeit cryptic).
X-Tumblr-Content-Rating: adult
Rating: RTA-5042-1996-1400-1577-RTA
Closest I can figure out, it's this: http://www.rtalabel.org/index.php?content=howto, which also seems to also be a <meta>
tag version:
<meta name="RATING" content="RTA-5042-1996-1400-1577-RTA" />
Looks like certain subreddits may have an x-over18: true
header to flag if they are Adult/NSFW.
It's only a drop in the bucket, but it looks like Tumblr at least returns an
X-Tumblr-Content-Rating: nsfw
header which we can probably filter on after getting thefetch()
response.I found https://www.tumblr.com/docs/en/nsfw, but it doesn't seem to mention headers or other options.
UPDATE(s): Tumblr's not very good at creating documentation, but this also isn't really "end-user" kinda stuff.
Looks like we may need to check for
X-Tumblr-Content-Rating: adult
header also. So far header value may either be"nsfw"
or"adult"
.