Update StatusService, fix logic check

This commit is contained in:
Daniel Supernault 2023-09-18 00:17:22 -06:00
parent 5ab7f9958c
commit 61d235b797
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -43,7 +43,7 @@ class StatusService
}
return $res;
});
if($res) {
if($res && isset($res['_pid'])) {
$res['account'] = $mastodonMode === true ? AccountService::getMastodon($res['_pid'], true) : AccountService::get($res['_pid'], true);
unset($res['_pid']);
}