From d999959f609f0b1d1d6bbfea9ba1bca92e70782a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9cy=20Dub=C3=A9?= Date: Tue, 7 Nov 2023 08:55:36 -0500 Subject: [PATCH] Fix NTFY markdown Ensure the notification payload includes the "markdown" field set to true. --- internal/notif/ntfy/client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/notif/ntfy/client.go b/internal/notif/ntfy/client.go index 7288438e0..0884484c6 100644 --- a/internal/notif/ntfy/client.go +++ b/internal/notif/ntfy/client.go @@ -64,12 +64,14 @@ func (c *Client) Send(entry model.NotifEntry) error { Title string `json:"title"` Priority int `json:"priority"` Tags []string `json:"tags"` + Markdown bool `json:"markdown"` }{ Topic: c.cfg.Topic, Message: string(body), Title: string(title), Priority: c.cfg.Priority, Tags: c.cfg.Tags, + Markdown: true, }); err != nil { return err }