mirror of https://github.com/SeanOMik/znc-push.git
Merge pull request #112 from creesch/patch-1
Pushbullet: use type "link" when message_uri is set
This commit is contained in:
commit
aac08a1430
6
push.cpp
6
push.cpp
|
@ -289,7 +289,13 @@ class CPushMod : public CModule
|
|||
params["device_iden"] = options["target"];
|
||||
}
|
||||
|
||||
if (message_uri == "")
|
||||
{
|
||||
params["type"] = "note";
|
||||
} else {
|
||||
params["type"] = "link";
|
||||
params["url"] = message_uri;
|
||||
}
|
||||
params["title"] = message_title;
|
||||
params["body"] = message_content;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue