[evolution/gnome-3-26] Bug 790069 - Free/Busy Publishing should not include X-SUMMARY and X-LOCATION
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-26] Bug 790069 - Free/Busy Publishing should not include X-SUMMARY and X-LOCATION
- Date: Tue, 21 Nov 2017 16:36:41 +0000 (UTC)
commit 8e3e9932afdbb3eb7d767fa2a0621f2ec80ea4ee
Author: Milan Crha <mcrha redhat com>
Date: Tue Nov 21 17:36:11 2017 +0100
Bug 790069 - Free/Busy Publishing should not include X-SUMMARY and X-LOCATION
src/plugins/publish-calendar/publish-format-fb.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/publish-calendar/publish-format-fb.c
b/src/plugins/publish-calendar/publish-format-fb.c
index 284fc98..24a4954 100644
--- a/src/plugins/publish-calendar/publish-format-fb.c
+++ b/src/plugins/publish-calendar/publish-format-fb.c
@@ -102,6 +102,18 @@ write_calendar (const gchar *uid,
for (iter = objects; iter; iter = iter->next) {
ECalComponent *comp = iter->data;
icalcomponent *icalcomp = icalcomponent_new_clone (e_cal_component_get_icalcomponent
(comp));
+ icalproperty *prop;
+
+ if (!icalcomp)
+ continue;
+
+ for (prop = icalcomponent_get_first_property (icalcomp, ICAL_FREEBUSY_PROPERTY);
+ prop;
+ prop = icalcomponent_get_next_property (icalcomp, ICAL_FREEBUSY_PROPERTY)) {
+ icalproperty_remove_parameter_by_name (prop, "X-SUMMARY");
+ icalproperty_remove_parameter_by_name (prop, "X-LOCATION");
+ }
+
icalcomponent_add_component (top_level, icalcomp);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]