kopia lustrzana https://github.com/pixelfed/pixelfed
Update ApiV1Controller, filter conversations without last_status
rodzic
29b1af100c
commit
e8a6a8c71e
|
@ -2335,7 +2335,7 @@ class ApiV1Controller extends Controller
|
||||||
return $res;
|
return $res;
|
||||||
})
|
})
|
||||||
->filter(function($dm) {
|
->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) {
|
->unique(function($item, $key) {
|
||||||
return $item['accounts'][0]['id'];
|
return $item['accounts'][0]['id'];
|
||||||
|
|
Ładowanie…
Reference in New Issue