shorturl-any shouldn't need a server

This commit is contained in:
jesopo 2020-10-17 16:46:37 +00:00
parent 09cfae75b8
commit 2f5d001a79

View file

@ -41,7 +41,7 @@ class Module(ModuleManager.BaseModule):
@utils.export("shorturl-any") @utils.export("shorturl-any")
def _shorturl_any(self, url): def _shorturl_any(self, url):
return self._call_shortener(server, None, "bitly", url) or url return self._call_shortener(None, None, "bitly", url) or url
@utils.export("shorturl") @utils.export("shorturl")
def _shorturl(self, server, url, context=None): def _shorturl(self, server, url, context=None):