mirror of https://github.com/SeanOMik/znc-push.git
Pushbullet use type "link" when message_uri is set
This commit is contained in:
parent
e0aacab2b6
commit
2246fb0399
8
push.cpp
8
push.cpp
|
@ -285,7 +285,13 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue