diff options
author | Sylvain <git@sylvain.dev> | 2022-10-02 17:41:59 +0200 |
---|---|---|
committer | Sylvain <git@sylvain.dev> | 2022-10-02 17:55:11 +0200 |
commit | e3d50f99c99e40f938462d92d724ad71dcbcfb51 (patch) | |
tree | 0e5221b7ecb9a0242a4915f7844c368988285df1 /apps | |
parent | e714524267fbecf800de3fa3f59a87d8117cc0f7 (diff) | |
download | nextcloud-server-e3d50f99c99e40f938462d92d724ad71dcbcfb51.tar.gz nextcloud-server-e3d50f99c99e40f938462d92d724ad71dcbcfb51.zip |
feat(contacts): exclude contact from birthday calendar
Signed-off-by: Sylvain <git@sylvain.dev>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/lib/CalDAV/BirthdayService.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/dav/lib/CalDAV/BirthdayService.php b/apps/dav/lib/CalDAV/BirthdayService.php index be6b0911538..e0fcc666e3f 100644 --- a/apps/dav/lib/CalDAV/BirthdayService.php +++ b/apps/dav/lib/CalDAV/BirthdayService.php @@ -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; } |