aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain <git@sylvain.dev>2022-10-02 17:41:59 +0200
committerSylvain <git@sylvain.dev>2022-10-02 17:55:11 +0200
commite3d50f99c99e40f938462d92d724ad71dcbcfb51 (patch)
tree0e5221b7ecb9a0242a4915f7844c368988285df1
parente714524267fbecf800de3fa3f59a87d8117cc0f7 (diff)
downloadnextcloud-server-e3d50f99c99e40f938462d92d724ad71dcbcfb51.tar.gz
nextcloud-server-e3d50f99c99e40f938462d92d724ad71dcbcfb51.zip
feat(contacts): exclude contact from birthday calendar
Signed-off-by: Sylvain <git@sylvain.dev>
-rw-r--r--apps/dav/lib/CalDAV/BirthdayService.php5
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;
}