[backend/akko-client] Fix context of boosts
This commit is contained in:
parent
16c0cba1f4
commit
bcb6382c73
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue