forked from mirror/pixelfed
Update PublicApiController, fix non-public visibility inclusion on home timeline
This commit is contained in:
parent
a73b2f0002
commit
5bcc02ecac
1 changed files with 2 additions and 2 deletions
|
@ -521,7 +521,7 @@ class PublicApiController extends Controller
|
||||||
->limit($limit)
|
->limit($limit)
|
||||||
->get()
|
->get()
|
||||||
->map(function($s) use ($user) {
|
->map(function($s) use ($user) {
|
||||||
$status = StatusService::get($s->id);
|
$status = StatusService::get($s->id, false);
|
||||||
if(!$status) {
|
if(!$status) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -567,7 +567,7 @@ class PublicApiController extends Controller
|
||||||
->limit($limit)
|
->limit($limit)
|
||||||
->get()
|
->get()
|
||||||
->map(function($s) use ($user) {
|
->map(function($s) use ($user) {
|
||||||
$status = StatusService::get($s->id);
|
$status = StatusService::get($s->id, false);
|
||||||
if(!$status) {
|
if(!$status) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue