From e4669a8aab01eabb433bf5ad4dc45092172a1a47 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 26 Sep 2019 21:36:49 -0600 Subject: [PATCH] Update AccountTransformer, tfw you confuse javascript and php operators --- 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 e2e1b4a29..3c621c357 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 + '@' + config('pixelfed.domain.app') : 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,