mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
feat(contacts): exclude contact from birthday calendar
Signed-off-by: Sylvain <git@sylvain.dev>
This commit is contained in:
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue