feat: hide deceased people in dashboard / people list (#1903)

This commit is contained in:
oh
2018-10-27 03:51:10 +01:00
committed by Régis Freyd
parent c0099b42ad
commit fdcefcabdb
8 changed files with 40 additions and 7 deletions
@@ -40,6 +40,10 @@ class DashboardController extends Controller
->limit(10)
->get();
foreach ($lastUpdatedContacts as $contact) {
if ($contact->is_dead) {
continue;
}
$data = [
'id' => $contact->hashID(),
'has_avatar' => $contact->has_avatar,