Fix ntfy X-Actions header YAML format from string to map

The Go type for headers is []map[string]string, so the YAML entry
must be a map (- Key: "value") not a quoted string (- "Key: value").
The string format silently failed unmarshaling, causing the default
"View Clip" button to always appear instead of custom actions.

Also fix camera URL path (added / before # fragment).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Erich Blume 2026-02-14 14:17:50 -08:00
commit 6ac2505317

View file

@ -28,4 +28,4 @@ data:
server: http://ntfy.ntfy.svc.cluster.local:80
topic: frigate-alerts
headers:
- "X-Actions: view, Open Event, {{.Extra.PublicURL}}/review?id={{.ID}}, clear=true; view, Open Camera, {{.Extra.PublicURL}}#/cameras/{{.Camera}}"
- X-Actions: "view, Open Event, {{.Extra.PublicURL}}/review?id={{.ID}}, clear=true; view, Open Camera, {{.Extra.PublicURL}}/#/cameras/{{.Camera}}"