From 8f782917d999c2aa0ed7fbf7863ba6a44d4ec6e0 Mon Sep 17 00:00:00 2001 From: Shlee Date: Wed, 25 Feb 2026 11:28:41 +1030 Subject: [PATCH] Update AccountTransformer.php --- app/Transformer/Api/Mastodon/v1/AccountTransformer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Transformer/Api/Mastodon/v1/AccountTransformer.php b/app/Transformer/Api/Mastodon/v1/AccountTransformer.php index 36830fa79..5260fa72b 100644 --- a/app/Transformer/Api/Mastodon/v1/AccountTransformer.php +++ b/app/Transformer/Api/Mastodon/v1/AccountTransformer.php @@ -11,11 +11,12 @@ class AccountTransformer extends Fractal\TransformerAbstract { $local = $profile->domain == null; $username = $local ? $profile->username : explode('@', substr($profile->username, 1))[0]; + $acct = $local ? $profile->username : substr($profile->username, 1); return [ 'id' => (string) $profile->id, 'username' => $username, - 'acct' => $username, + 'acct' => $acct, 'display_name' => $profile->name, 'locked' => (bool) $profile->is_private, 'bot' => false,