From 70f4b8607ac66cbf9f690ae5dccf92ba774368b1 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 26 Sep 2019 21:35:25 -0600 Subject: [PATCH] Update AccountTransformer --- app/Transformer/Api/Mastodon/v1/AccountTransformer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Transformer/Api/Mastodon/v1/AccountTransformer.php b/app/Transformer/Api/Mastodon/v1/AccountTransformer.php index 12e003583..e2e1b4a29 100644 --- a/app/Transformer/Api/Mastodon/v1/AccountTransformer.php +++ b/app/Transformer/Api/Mastodon/v1/AccountTransformer.php @@ -11,7 +11,7 @@ class AccountTransformer extends Fractal\TransformerAbstract { $local = $profile->domain == null; $is_admin = !$local ? false : $profile->user->is_admin; - $acct = $local ? $profile->username : substr($profile->username, 1); + $acct = $local ? $profile->username + '@' + config('pixelfed.domain.app') : substr($profile->username, 1); $username = $local ? $profile->username : explode('@', $acct)[0]; return [ 'id' => (string) $profile->id,