From bcb6382c73cc7f6c242e4b3a2c83025c46db285c Mon Sep 17 00:00:00 2001 From: Kopper Date: Sun, 1 Sep 2024 08:12:39 +0300 Subject: [PATCH] [backend/akko-client] Fix context of boosts --- Iceshrimp.Backend/Controllers/Mastodon/StatusController.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Iceshrimp.Backend/Controllers/Mastodon/StatusController.cs b/Iceshrimp.Backend/Controllers/Mastodon/StatusController.cs index 09423cff..2026b01f 100644 --- a/Iceshrimp.Backend/Controllers/Mastodon/StatusController.cs +++ b/Iceshrimp.Backend/Controllers/Mastodon/StatusController.cs @@ -104,6 +104,10 @@ public class StatusController( if (!shouldShowContext) 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) .IncludeCommonProperties() .EnsureVisibleFor(user)