From e3d50f99c99e40f938462d92d724ad71dcbcfb51 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Sun, 2 Oct 2022 17:41:59 +0200 Subject: feat(contacts): exclude contact from birthday calendar Signed-off-by: Sylvain --- apps/dav/lib/CalDAV/BirthdayService.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps') 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; } -- cgit v1.2.3