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

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