Merge pull request #112 from creesch/patch-1

Pushbullet: use type "link" when message_uri is set
This commit is contained in:
John Reese 2014-08-28 12:00:07 -07:00
commit aac08a1430
1 changed files with 8 additions and 2 deletions

View File

@ -288,8 +288,14 @@ class CPushMod : public CModule
{ {
params["device_iden"] = options["target"]; 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["title"] = message_title;
params["body"] = message_content; params["body"] = message_content;
} }