mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #16071] [MERGED] Rehydrate cached UserData after reattachment #14515
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/16071
Author: @MarcoCoreDuo
Created: 1/20/2026
Status: ✅ Merged
Merged: 1/23/2026
Merged by: @crobibero
Base:
release-10.11.z← Head:rehydrate-reattached-userdata📝 Commits (2)
344a450Refactor ReattachUserDataAsync to include transaction handling and rehydrate cached userdatac8fbb5baddress review comments📊 Changes
1 file changed (+24 additions, -10 deletions)
View changed files
📝
Jellyfin.Server.Implementations/Item/BaseItemRepository.cs(+24 -10)📄 Description
After renaming media items, the GetItem API returns cached items without the reattached UserData. This occurs because ReattachUserDataAsync updates the database but does not rehydrate the in-memory item instance. As a result, navigating to a movie or episode page incorrectly shows the item as not played.
Changes
Issues
Fixes https://forum.jellyfin.org/t-new-jellyfin-server-web-release-10-11-6?pid=69525#pid69525
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.