mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Update ApiV1Controller, filter conversations without last_status
This commit is contained in:
parent
29b1af100c
commit
e8a6a8c71e
1 changed files with 1 additions and 1 deletions
|
@ -2335,7 +2335,7 @@ class ApiV1Controller extends Controller
|
|||
return $res;
|
||||
})
|
||||
->filter(function($dm) {
|
||||
return isset($dm['accounts']) && count($dm['accounts']);
|
||||
return isset($dm['accounts']) && count($dm['accounts']) && !empty($dm['last_status']);
|
||||
})
|
||||
->unique(function($item, $key) {
|
||||
return $item['accounts'][0]['id'];
|
||||
|
|
Loading…
Reference in a new issue