From f9611a6704f5de2b967e00e29e3d41a732f78f77 Mon Sep 17 00:00:00 2001 From: Lily Cohen Date: Mon, 21 Sep 2026 10:55:06 -0600 Subject: [PATCH] Give the nested boost target Mastodon field names --- app/Services/StatusService.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/Services/StatusService.php b/app/Services/StatusService.php index d14d84c75..e155b0577 100644 --- a/app/Services/StatusService.php +++ b/app/Services/StatusService.php @@ -115,6 +115,14 @@ class StatusService return $status; } + // The shared status nests under `reblog` and needs Mastodon field names too + if (! empty($status['reblog'])) { + $status['reblog']['replies_count'] = $status['reblog']['reply_count'] ?? 0; + $status['reblog']['favourited'] = false; + $status['reblog']['muted'] = false; + $status['reblog']['reblogged'] = false; + } + unset( $status['_v'], $status['comments_disabled'],