mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-25 09:17:03 +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;
|
$local = $profile->domain == null;
|
||||||
$is_admin = !$local ? false : $profile->user->is_admin;
|
$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];
|
$username = $local ? $profile->username : explode('@', $acct)[0];
|
||||||
return [
|
return [
|
||||||
'id' => (string) $profile->id,
|
'id' => (string) $profile->id,
|
||||||
|
|
Loading…
Reference in a new issue