feat(contacts): exclude contact from birthday calendar

Signed-off-by: Sylvain <git@sylvain.dev>
pull/34388/head
Sylvain 2022-10-02 17:41:59 +07:00
parent e714524267
commit e3d50f99c9
1 changed files with 5 additions and 0 deletions

@ -180,6 +180,11 @@ class BirthdayService {
return null;
}
$excludeFromBirthdayCalendarKey = "x-nc-exclude-from-birthday-calendar";
if (isset($doc->{$excludeFromBirthdayCalendarKey})) {
return null;
}
if (!isset($doc->{$dateField})) {
return null;
}