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; }