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:
parent
79e5673fb8
commit
6ac2505317
1 changed files with 1 additions and 1 deletions
|
|
@ -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}}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue