From 22554f8b4ef47e30b93c8470c806a36f05695bf1 Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Fri, 13 Mar 2026 21:16:26 +0100 Subject: [PATCH] sharing/bday/get: add on-the-fly conversion hook --- radicale/app/get.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/radicale/app/get.py b/radicale/app/get.py index fa4158ad..e42f27ff 100644 --- a/radicale/app/get.py +++ b/radicale/app/get.py @@ -117,5 +117,9 @@ class ApplicationPartGet(ApplicationBase): "ETag": item.etag} if content_disposition: headers["Content-Disposition"] = content_disposition - answer = item.serialize() + if isinstance(item, storage.BaseCollection) and self._sharing._enabled and share and share['ShareType'] == "bday": + # convert VCF to ICS + answer = item.serialize(vcf_to_ics=True) + else: + answer = item.serialize() return client.OK, headers, answer, None