From 9ac80f3945dea2b02a93abda34f562857737993a Mon Sep 17 00:00:00 2001 From: pancakes Date: Tue, 4 Feb 2025 11:14:31 +1000 Subject: [PATCH] [backend/api] Recursively reload user after refetching --- Iceshrimp.Backend/Controllers/Web/UserController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Iceshrimp.Backend/Controllers/Web/UserController.cs b/Iceshrimp.Backend/Controllers/Web/UserController.cs index 2fc20ef0..82c3c8e3 100644 --- a/Iceshrimp.Backend/Controllers/Web/UserController.cs +++ b/Iceshrimp.Backend/Controllers/Web/UserController.cs @@ -155,7 +155,7 @@ public class UserController( await userSvc.UpdateUserAsync(user, force: true); - db.ChangeTracker.Clear(); + await db.ReloadEntityRecursivelyAsync(user); user = await db.Users.IncludeCommonProperties() .FirstOrDefaultAsync(p => p.Id == id && p.Host != null && p.Uri != null)