Update ApiV1Controller, fix non-public visibility inclusion on home timeline

This commit is contained in:
Daniel Supernault 2022-06-05 03:24:44 -06:00
parent 5bcc02ecac
commit 98c2397bf0
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -1811,7 +1811,7 @@ class ApiV1Controller extends Controller
->take(($limit * 2))
->get()
->map(function($s) use($pid) {
$status = StatusService::getMastodon($s['id']);
$status = StatusService::getMastodon($s['id'], false);
if(!$status || !isset($status['account']) || !isset($status['account']['id'])) {
return false;
}
@ -1842,7 +1842,7 @@ class ApiV1Controller extends Controller
->take(($limit * 2))
->get()
->map(function($s) use($pid) {
$status = StatusService::getMastodon($s['id']);
$status = StatusService::getMastodon($s['id'], false);
if(!$status || !isset($status['account']) || !isset($status['account']['id'])) {
return false;
}