mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update PublicApiController
This commit is contained in:
parent
24fbdf0afb
commit
0c1a0fa55b
1 changed files with 2 additions and 2 deletions
|
@ -327,7 +327,7 @@ class PublicApiController extends Controller
|
|||
return $status;
|
||||
})
|
||||
->filter(function($s) use($filtered) {
|
||||
return $s && in_array($s['account']['id'], $filtered) == false;
|
||||
return $s && isset($s['account']) && in_array($s['account']['id'], $filtered) == false;
|
||||
})
|
||||
->values();
|
||||
$res = $timeline->toArray();
|
||||
|
@ -397,7 +397,7 @@ class PublicApiController extends Controller
|
|||
return $status;
|
||||
})
|
||||
->filter(function($s) use($filtered) {
|
||||
return in_array($s['account']['id'], $filtered) == false;
|
||||
return isset($s['account']) && in_array($s['account']['id'], $filtered) == false;
|
||||
})
|
||||
->values()
|
||||
->toArray();
|
||||
|
|
Loading…
Reference in a new issue