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'],