mirror of
https://github.com/mgrove36/ical-filter-proxy.git
synced 2026-03-03 01:47:07 +00:00
Add location transformations
This commit is contained in:
@@ -186,6 +186,13 @@ func (filter Filter) transformEvent(event *ics.VEvent) {
|
||||
} else if filter.Transform.Description.Replace != "" {
|
||||
event.SetDescription(filter.Transform.Description.Replace)
|
||||
}
|
||||
|
||||
// Location transformations
|
||||
if filter.Transform.Location.Remove {
|
||||
event.SetLocation("")
|
||||
} else if filter.Transform.Location.Replace != "" {
|
||||
event.SetLocation(filter.Transform.Location.Replace)
|
||||
}
|
||||
}
|
||||
|
||||
// EventMatchRules contains VEvent properties that user can match against
|
||||
|
||||
Reference in New Issue
Block a user