fix discord_handler
This commit is contained in:
parent
976d9526c4
commit
c35e5ef7b6
1 changed files with 2 additions and 2 deletions
|
|
@ -9,8 +9,8 @@ defmodule ZoeyscomputerWeb.DiscordHandler do
|
|||
|
||||
@discord_patterns [
|
||||
~r/^Mozilla\/5\.0 \(compatible; Discordbot\//,
|
||||
# Pattern for common Discord web client
|
||||
~r/^Mozilla\/5\.0.*Firefox\/.*$/
|
||||
# Discord's specific Mac client pattern
|
||||
~r/^Mozilla\/5\.0 \(Macintosh; Intel Mac OS X [0-9_.]+; rv:[0-9.]+\) Gecko\/20100101 Firefox\/[0-9.]+$/
|
||||
]
|
||||
|
||||
def call(%{path_info: ["images", _id | _]} = conn, _opts) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue