[backend/api] Remove unnecessary database query

This commit is contained in:
pancakes 2025-02-04 22:37:54 +10:00 committed by Laura Hausmann
parent 9ac80f3945
commit 220d65fa3d
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -157,10 +157,6 @@ public class UserController(
await db.ReloadEntityRecursivelyAsync(user); await db.ReloadEntityRecursivelyAsync(user);
user = await db.Users.IncludeCommonProperties()
.FirstOrDefaultAsync(p => p.Id == id && p.Host != null && p.Uri != null)
?? throw new Exception("User disappeared during refetch");
return await userRenderer.RenderOne(user); return await userRenderer.RenderOne(user);
} }