[backend/api] Fix internal server error on UserController.GetUserNotes (ISH-336)
This commit is contained in:
parent
6386025c24
commit
b543733451
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue