From 2246fb0399b66bbdc7defb8dce56be4d202f7711 Mon Sep 17 00:00:00 2001 From: creesch Date: Wed, 27 Aug 2014 10:28:14 +0200 Subject: [PATCH] Pushbullet use type "link" when message_uri is set --- push.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/push.cpp b/push.cpp index 8c41acc..94a34de 100755 --- a/push.cpp +++ b/push.cpp @@ -284,8 +284,14 @@ class CPushMod : public CModule { params["device_iden"] = options["target"]; } - - params["type"] = "note"; + + if (message_uri == "") + { + params["type"] = "note"; + } else { + params["type"] = "link"; + params["url"] = message_uri; + } params["title"] = message_title; params["body"] = message_content; }