aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-20 16:35:58 +0100
committerGravatar jesopo2019-06-20 16:35:58 +0100
commit8797be94576e796b409f87a84f99dc7653364332 (patch)
tree7d4e9957d09cd66a67ce5e885e7520a87892134d /modules
parentImplement hostmask_match_any, for more efficient matching of multiple hostmasks (diff)
signature
return unshortened url when shortening fails
Diffstat (limited to 'modules')
-rw-r--r--modules/shorturl.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/shorturl.py b/modules/shorturl.py
index d1be3fcd..af8f80c0 100644
--- a/modules/shorturl.py
+++ b/modules/shorturl.py
@@ -22,6 +22,7 @@ class Module(ModuleManager.BaseModule):
if page and page.data["data"]:
return page.data["data"]["url"]
+ return url
@utils.hook("received.command.shorten")
def shorten(self, event):