[backend/akko-client] Fix context of boosts

This commit is contained in:
Kopper 2024-09-01 08:12:39 +03:00 committed by Iceshrimp development
parent 16c0cba1f4
commit bcb6382c73

View file

@ -104,6 +104,10 @@ public class StatusController(
if (!shouldShowContext) if (!shouldShowContext)
return new StatusContext { Ancestors = [], Descendants = [] }; return new StatusContext { Ancestors = [], Descendants = [] };
// Akkoma-FE calls /context on boosts
if (note.IsPureRenote)
return await GetStatusContext(note.RenoteId!);
var ancestors = await db.NoteAncestors(id, maxAncestors) var ancestors = await db.NoteAncestors(id, maxAncestors)
.IncludeCommonProperties() .IncludeCommonProperties()
.EnsureVisibleFor(user) .EnsureVisibleFor(user)