diff --git a/Shoko.Server/Models/SVR_GroupFilter.cs b/Shoko.Server/Models/SVR_GroupFilter.cs index e6605a17a..5b3270b18 100644 --- a/Shoko.Server/Models/SVR_GroupFilter.cs +++ b/Shoko.Server/Models/SVR_GroupFilter.cs @@ -462,6 +462,8 @@ public bool EvaluateGroupFilter(CL_AnimeGroup_User contractGroup, JMMUser curUse if ((FilterType & (int) GroupFilterType.Directory) == (int) GroupFilterType.Directory) return false; + if (contractGroup?.Stat_AllTags == null) return false; + if (curUser?.GetHideCategories().FindInEnumerable(contractGroup.Stat_AllTags) ?? false) return false; // sub groups don't count @@ -857,6 +859,8 @@ public bool EvaluateGroupFilter(CL_AnimeSeries_User contractSerie, JMMUser curUs if ((FilterType & (int) GroupFilterType.Directory) == (int) GroupFilterType.Directory) return false; + if (contractSerie?.AniDBAnime?.AniDBAnime == null) return false; + if (curUser?.GetHideCategories().FindInEnumerable(contractSerie.AniDBAnime.AniDBAnime.GetAllTags()) ?? false) return false;