mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update AccountTransformer, tfw you confuse javascript and php operators
This commit is contained in:
parent
70f4b8607a
commit
e4669a8aab
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ class AccountTransformer extends Fractal\TransformerAbstract
|
||||||
{
|
{
|
||||||
$local = $profile->domain == null;
|
$local = $profile->domain == null;
|
||||||
$is_admin = !$local ? false : $profile->user->is_admin;
|
$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];
|
$username = $local ? $profile->username : explode('@', $acct)[0];
|
||||||
return [
|
return [
|
||||||
'id' => (string) $profile->id,
|
'id' => (string) $profile->id,
|
||||||
|
|
Loading…
Reference in a new issue