fixed escape characters in notify string

This commit is contained in:
BroodjeAap 2022-11-21 19:44:03 +00:00
parent 1793a04892
commit 74b30a5c81
2 changed files with 2 additions and 3 deletions

View file

@ -763,10 +763,10 @@ func notifyFilter(filters []Filter, filter *Filter, watch *Watch, web *Web, debu
dataMap := make(map[string]any, 20)
for _, f := range filters {
dataMap[f.Name] = html.UnescapeString(strings.Join(f.Results, ", "))
dataMap[f.Name] = template.HTML(strings.Join(f.Results, ", "))
}
dataMap["Watch"] = watch
dataMap["WatchName"] = template.HTML(watch.Name)
var buffer bytes.Buffer
tmpl.Execute(&buffer, dataMap)

View file

@ -1,6 +1,5 @@
# Todo
- make generic 'notifier' interface
- header/post body for get url ?
- unescape notify string
- add lua filter
- edit button on watch view page