In the alert method, there's a local variable named url which overrides the parameter url that's used for passing a link to the notification server. Thus, every message ends up having the API URL as its link. This is clearly not right.
It's a simple fix: rename url to something else like posturl in lines 72 and 79.
In the
alert
method, there's a local variable namedurl
which overrides the parameterurl
that's used for passing a link to the notification server. Thus, every message ends up having the API URL as its link. This is clearly not right.It's a simple fix: rename
url
to something else likeposturl
in lines 72 and 79.