mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 20:32:48 +00:00
Add owner prop
This commit is contained in:
@@ -109,6 +109,7 @@ pub fn generate_propfind_calendar_response(
|
||||
"supported-calendar-component-set",
|
||||
"getcontenttype",
|
||||
"calendar-description",
|
||||
"owner",
|
||||
]
|
||||
.iter(),
|
||||
);
|
||||
@@ -122,10 +123,8 @@ pub fn generate_propfind_calendar_response(
|
||||
for prop in props {
|
||||
match prop {
|
||||
"resourcetype" => write_resourcetype(writer, vec!["C:calendar", "collection"])?,
|
||||
"current-user-principal" => {
|
||||
writer
|
||||
.create_element("current-user-principal")
|
||||
.write_inner_content(|writer| {
|
||||
"current-user-principal" | "owner" => {
|
||||
writer.create_element(prop).write_inner_content(|writer| {
|
||||
writer
|
||||
.create_element("href")
|
||||
.write_text_content(BytesText::new(&format!(
|
||||
|
||||
Reference in New Issue
Block a user