Update StatusHashtagService, fix null status bug

This commit is contained in:
Daniel Supernault 2021-07-05 23:40:54 -06:00
parent f215ee26b3
commit 51a277e1ae
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 4 additions and 1 deletions

View File

@ -30,6 +30,9 @@ class StatusHashtagService {
->map(function ($i, $k) use ($id) {
return self::getStatus($i, $id);
})
->filter(function ($i) {
return isset($i['status']) && !empty($i['status']);
})
->all();
}
@ -72,4 +75,4 @@ class StatusHashtagService {
{
return ['status' => StatusService::get($statusId)];
}
}
}