mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-25 01:05:36 +00:00
Update AccountTransformer
This commit is contained in:
parent
55ee29f301
commit
70f4b8607a
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue