mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +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) {
|
||||
$res['suspended'] = true;
|
||||
$res['name'] = '';
|
||||
unset($res['icon']);
|
||||
$res['summary'] = '';
|
||||
$res['indexable'] = false;
|
||||
$res['manuallyApprovesFollowers'] = false;
|
||||
} else {
|
||||
if ($profile->aliases->count()) {
|
||||
$res['alsoKnownAs'] = $profile->aliases->map(fn ($alias) => $alias->uri);
|
||||
|
|
Loading…
Reference in a new issue