mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-04-26 04:51:08 -05:00
Grapnel: less lazy urlencode
This commit is contained in:
parent
1d21359590
commit
393e7fea01
@ -157,7 +157,10 @@ class Grapnel(callbacks.Plugin):
|
||||
|
||||
def _format_url(self, hookID, token):
|
||||
baseurl = self.registryValue("baseURL")
|
||||
url = urllib.parse.urljoin(baseurl, f"/{HTTP_ENDPOINT_NAME}/{hookID}?token={token}&sender=change-this")
|
||||
url = urllib.parse.urljoin(baseurl, f"/{HTTP_ENDPOINT_NAME}/{hookID}?" + urllib.parse.urlencode({
|
||||
'token': token,
|
||||
'sender': 'your-cool-app-name'
|
||||
}))
|
||||
return url
|
||||
|
||||
@wrap(['networkIrc', 'channel', 'admin'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user