From ad6338ecaeedf668c0a3536315ef38c491d8a675 Mon Sep 17 00:00:00 2001 From: RKWojs Date: Thu, 4 Dec 2025 12:02:08 +0100 Subject: [PATCH] fix: update contact URL structure for Radicale sync functions --- src/lib/radicale-sync.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/radicale-sync.js b/src/lib/radicale-sync.js index d427964..c9cbd0c 100644 --- a/src/lib/radicale-sync.js +++ b/src/lib/radicale-sync.js @@ -155,7 +155,7 @@ async function syncContactToRadicaleInternal(contact, forceUpdate = false) { const baseUrl = config.url.endsWith('/') ? config.url : config.url + '/'; // Construct the URL for this specific contact - const vcardUrl = `${baseUrl}${config.username}/contacts/contact-${contact.contact_id}.vcf`; + const vcardUrl = `${baseUrl}${config.username}/b576a569-4af7-5812-7ddd-3c7cb8caf692/contact-${contact.contact_id}.vcf`; const headers = { 'Authorization': `Basic ${auth}`, @@ -235,7 +235,7 @@ export async function deleteContactFromRadicale(contactId) { const baseUrl = config.url.endsWith('/') ? config.url : config.url + '/'; // Construct the URL for this specific contact - const vcardUrl = `${baseUrl}${config.username}/contacts/contact-${contactId}.vcf`; + const vcardUrl = `${baseUrl}${config.username}/b576a569-4af7-5812-7ddd-3c7cb8caf692/contact-${contactId}.vcf`; const response = await fetch(vcardUrl, { method: 'DELETE', @@ -260,7 +260,6 @@ export async function deleteContactFromRadicale(contactId) { // Sync contact asynchronously (fire and forget) export function syncContactAsync(contact) { - console.log(contact, isRadicaleEnabled()); if (!isRadicaleEnabled()) { return; }