also support twitter mobile urls

This commit is contained in:
jesopo 2019-10-20 17:10:01 +01:00
parent 31531949ce
commit f7aa56b8eb

View file

@ -17,7 +17,7 @@ _exports = None
_log = None
REGEX_TWITTERURL = re.compile(
"https?://(?:www\.)?twitter.com/[^/]+/status/(\d+)", re.I)
"https?://(?:www\.|mobile\.)?twitter.com/[^/]+/status/(\d+)", re.I)
def _get_follows():
return _bot.database.channel_settings.find_by_setting("twitter-follow")