Merge pull request #18 from adryd325/main
Fix link regex to match pre-snowflake tweet IDs
This commit is contained in:
commit
bfcb28e7a0
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ import re
|
||||||
import os
|
import os
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
pathregex = re.compile("\\w{1,15}\\/status\\/\\d{19}")
|
pathregex = re.compile("\\w{1,15}\\/status\\/\\d{2,20}")
|
||||||
discord_user_agents = ["Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Firefox/38.0", "Mozilla/5.0 (compatible; Discordbot/2.0; +https://discordapp.com)"]
|
discord_user_agents = ["Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Firefox/38.0", "Mozilla/5.0 (compatible; Discordbot/2.0; +https://discordapp.com)"]
|
||||||
telegram_user_agents = ["TelegramBot (like TwitterBot)"]
|
telegram_user_agents = ["TelegramBot (like TwitterBot)"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue