mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-24 05:20:46 +00:00
Update AccountService, fix delete status
This commit is contained in:
parent
5ce158a272
commit
8b7121f9fb
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ class AccountService
|
||||||
$fractal = new Fractal\Manager();
|
$fractal = new Fractal\Manager();
|
||||||
$fractal->setSerializer(new ArraySerializer());
|
$fractal->setSerializer(new ArraySerializer());
|
||||||
$profile = Profile::find($id);
|
$profile = Profile::find($id);
|
||||||
if(!$profile) {
|
if(!$profile || $profile->status === 'delete') {
|
||||||
if($softFail) {
|
if($softFail) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue