carddav: Require UID in address object

This commit is contained in:
Lennart
2025-08-23 18:09:03 +02:00
parent 4e3c3f3a3b
commit 68a2e7e2a2
2 changed files with 16 additions and 17 deletions

View File

@@ -86,7 +86,8 @@ pub async fn put_object<AS: AddressbookStore>(
true
};
let object = AddressObject::from_vcf(object_id, body)?;
let object = AddressObject::from_vcf(body)?;
assert_eq!(object.get_id(), object_id);
addr_store
.put_object(principal, addressbook_id, object, overwrite)
.await?;