GraphQL: searchMangaByTitle returns R18 without token, findMangaById does filter
Closed this issue · 1 comments
mizaki commented
It appears that searchMangaByTitle
returns R18 even without an authorisation token.
query minMangaByTitle($title: String!, $limit: Int, $after: String) {
searchMangaByTitle(first: $limit, title: $title, after: $after) {
nodes {
id
titles {
canonical
}
sfw
ageRating
}
}
}
{
"title": "innocent",
"limit": 2,
"after": ""
}
Result:
{
"data": {
"searchMangaByTitle": {
"nodes": [
{
"id": "25489",
"titles": {
"canonical": "Innocent"
},
"sfw": true,
"ageRating": "R"
},
{
"id": "13942",
"titles": {
"canonical": "Innocent"
},
"sfw": false,
"ageRating": "R18"
}
]
}
}
}
findMangaById
does appear to filter as 13942
returns null
. I also checked searchAnimeByTitle
which IS filtering out R18. I also checked the search with the JSON:API and that DOES filter too.
Apologies if this is already know.
mizaki commented
As mentioned on Discord, the plan is to not longer filter on the GraphQL end. So, to make this a little clearer. findMangaById
should not be filtering out R18
content as I understand it.