1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-25 17:26:43 +00:00

Merge pull request #4655 from pixelfed/staging

Update StatusService, fix logic check
This commit is contained in:
daniel 2023-09-18 00:17:58 -06:00 committed by GitHub
commit 19015f18b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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