From b543733451af884cb4d6dc6bee33c6ac63707880 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Thu, 23 May 2024 18:50:14 +0200 Subject: [PATCH] [backend/api] Fix internal server error on UserController.GetUserNotes (ISH-336) --- Iceshrimp.Backend/Controllers/UserController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Iceshrimp.Backend/Controllers/UserController.cs b/Iceshrimp.Backend/Controllers/UserController.cs index 5cf6761b..345701f0 100644 --- a/Iceshrimp.Backend/Controllers/UserController.cs +++ b/Iceshrimp.Backend/Controllers/UserController.cs @@ -63,11 +63,11 @@ public class UserController( var notes = await db.Notes .IncludeCommonProperties() - .Where(p => p.User == user) + .FilterByUser(user) .EnsureVisibleFor(localUser) .FilterHidden(localUser, db, filterMutes: false) - .PrecomputeVisibilities(localUser) .Paginate(pq, ControllerContext) + .PrecomputeVisibilities(localUser) .ToListAsync(); return Ok(await noteRenderer.RenderMany(notes.EnforceRenoteReplyVisibility(), localUser,