don't skip already "short" urls in yourls.py - can't predict output length

This commit is contained in:
jesopo 2020-03-09 00:07:30 +00:00
parent 11b2853832
commit 0cdd234c5c

View file

@ -16,9 +16,6 @@ SETTING = utils.FunctionSetting(_parse, "yourls",
class Module(ModuleManager.BaseModule):
@utils.export("shorturl-x-yourls")
def _shorturl(self, server, context, url):
if len(url) < 20:
return None
setting = server.get_setting("yourls",
self.bot.get_setting("yourls", None))
if context: