1
0
Fork 0
forked from mirror/pixelfed

Update AccountService, fix delete status

This commit is contained in:
Daniel Supernault 2022-11-17 19:51:48 -07:00
parent 5ce158a272
commit 8b7121f9fb
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -23,7 +23,7 @@ class AccountService
$fractal = new Fractal\Manager();
$fractal->setSerializer(new ArraySerializer());
$profile = Profile::find($id);
if(!$profile) {
if(!$profile || $profile->status === 'delete') {
if($softFail) {
return null;
}