From 4313d619be4c6870d763933d96a06fb2d58eb106 Mon Sep 17 00:00:00 2001 From: Harshith Mohan <26010946+harshithmohan@users.noreply.github.com> Date: Wed, 13 Nov 2024 19:10:04 +0530 Subject: [PATCH] Fix restricted tags not getting saved (#1199) * Fix restricted tags not getting saved * Rename `ClearHideCategories` to `InvalidateHideCategoriesCache`, update commons --- Shoko.Commons | 2 +- Shoko.Server/API/v3/Models/Shoko/User.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Shoko.Commons b/Shoko.Commons index e257946e1..258c2e38a 160000 --- a/Shoko.Commons +++ b/Shoko.Commons @@ -1 +1 @@ -Subproject commit e257946e182c409130102d34374c41a6f8d77ddb +Subproject commit 258c2e38a060b78df28947bc5f028419cfe521a8 diff --git a/Shoko.Server/API/v3/Models/Shoko/User.cs b/Shoko.Server/API/v3/Models/Shoko/User.cs index 85eebc634..8349eb9b6 100644 --- a/Shoko.Server/API/v3/Models/Shoko/User.cs +++ b/Shoko.Server/API/v3/Models/Shoko/User.cs @@ -228,6 +228,7 @@ public CreateOrUpdateUserBody() { } // Update restricted tags for the user. if (RestrictedTags != null) { + user.InvalidateHideCategoriesCache(); var tags = RestrictedTags .Select(tagID => RepoFactory.AniDB_Tag.GetByTagID(tagID)) .Where(tag => tag != null)