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:
parent
5bcc02ecac
commit
98c2397bf0
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue