return unshortened url when shortening fails
This commit is contained in:
parent
b6e194a450
commit
8797be9457
1 changed files with 1 additions and 0 deletions
|
@ -22,6 +22,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
|
|
||||||
if page and page.data["data"]:
|
if page and page.data["data"]:
|
||||||
return page.data["data"]["url"]
|
return page.data["data"]["url"]
|
||||||
|
return url
|
||||||
|
|
||||||
@utils.hook("received.command.shorten")
|
@utils.hook("received.command.shorten")
|
||||||
def shorten(self, event):
|
def shorten(self, event):
|
||||||
|
|
Loading…
Reference in a new issue