Skip to content

Commit

Permalink
Fix restricted tags not getting saved (#1199)
Browse files Browse the repository at this point in the history
* Fix restricted tags not getting saved

* Rename `ClearHideCategories` to `InvalidateHideCategoriesCache`, update commons
  • Loading branch information
harshithmohan authored Nov 13, 2024
1 parent 82f041d commit 4313d61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Shoko.Commons
1 change: 1 addition & 0 deletions Shoko.Server/API/v3/Models/Shoko/User.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4313d61

Please sign in to comment.