Merge pull request #390 from pushrbx/hotfix/sfw-filter1

Hotfix: SFW Filter
This commit is contained in:
Irfan 2023-06-12 02:53:29 +05:00 committed by GitHub
commit d65377b823
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -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 */

View File

@ -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 */