From b87488df6df7ec91a2083478cba4d37a3ad8f571 Mon Sep 17 00:00:00 2001 From: JsBergbau <37013344+JsBergbau@users.noreply.github.com> Date: Wed, 17 Mar 2021 22:07:35 +0100 Subject: [PATCH] Added support for msg.html (#773) --- social/pushover/57-pushover.html | 1 + social/pushover/57-pushover.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/social/pushover/57-pushover.html b/social/pushover/57-pushover.html index dabbb4cc..dc46f58a 100644 --- a/social/pushover/57-pushover.html +++ b/social/pushover/57-pushover.html @@ -82,6 +82,7 @@

msg.attachment: attach an image (Buffer or file path)

msg.url: to add a web address

msg.url_title: to add a url title if not already set in the properties

+

msg.html: set to true or 1 if message is HTML formatted

msg.sound: set the notification sound, see the available options

Uses Pushover. See this link for more details.

diff --git a/social/pushover/57-pushover.js b/social/pushover/57-pushover.js index 42d58cb3..571e91c2 100644 --- a/social/pushover/57-pushover.js +++ b/social/pushover/57-pushover.js @@ -37,7 +37,7 @@ module.exports = function(RED) { var sound = node.sound || msg.sound || null; var url = node.url || msg.url || null; var url_title = node.url_title || msg.url_title || null; - var html = node.html || false; + var html = node.html || msg.html || false; var attachment = msg.attachment || null; if (isNaN(pri)) {pri=0;} if (pri > 2) {pri = 2;}