mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
Merge pull request #390 from pushrbx/hotfix/sfw-filter1
Hotfix: SFW Filter
This commit is contained in:
commit
d65377b823
@ -213,7 +213,8 @@ class Anime extends JikanApiSearchableModel
|
||||
return $query
|
||||
->where("demographics.mal_id", "!=", Constants::GENRE_ANIME_HENTAI)
|
||||
->where("demographics.mal_id", "!=", Constants::GENRE_ANIME_EROTICA)
|
||||
->where("rating", "!=", AnimeRatingEnum::rx()->label);
|
||||
->where("rating", "!=", AnimeRatingEnum::rx()->label)
|
||||
->where("genres.mal_id", "!=", Constants::GENRE_ANIME_HENTAI);
|
||||
}
|
||||
|
||||
/** @noinspection PhpUnused */
|
||||
|
@ -123,7 +123,8 @@ class Manga extends JikanApiSearchableModel
|
||||
return $query
|
||||
->where("type", "!=", MangaTypeEnum::doujin()->label)
|
||||
->where("demographics.mal_id", "!=", Constants::GENRE_MANGA_HENTAI)
|
||||
->where("demographics.mal_id", "!=", Constants::GENRE_MANGA_EROTICA);
|
||||
->where("demographics.mal_id", "!=", Constants::GENRE_MANGA_EROTICA)
|
||||
->where("genres.mal_id", "!=", Constants::GENRE_MANGA_HENTAI);
|
||||
}
|
||||
|
||||
/** @noinspection PhpUnused */
|
||||
|
Loading…
x
Reference in New Issue
Block a user