mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update AP Profile Transformer, fix suspended attributes
This commit is contained in:
parent
63100fe950
commit
2e5e68e447
1 changed files with 5 additions and 0 deletions
|
@ -59,6 +59,11 @@ class ProfileTransformer extends Fractal\TransformerAbstract
|
||||||
|
|
||||||
if ($profile->status === 'delete' || $profile->deleted_at != null) {
|
if ($profile->status === 'delete' || $profile->deleted_at != null) {
|
||||||
$res['suspended'] = true;
|
$res['suspended'] = true;
|
||||||
|
$res['name'] = '';
|
||||||
|
unset($res['icon']);
|
||||||
|
$res['summary'] = '';
|
||||||
|
$res['indexable'] = false;
|
||||||
|
$res['manuallyApprovesFollowers'] = false;
|
||||||
} else {
|
} else {
|
||||||
if ($profile->aliases->count()) {
|
if ($profile->aliases->count()) {
|
||||||
$res['alsoKnownAs'] = $profile->aliases->map(fn ($alias) => $alias->uri);
|
$res['alsoKnownAs'] = $profile->aliases->map(fn ($alias) => $alias->uri);
|
||||||
|
|
Loading…
Reference in a new issue