mirror of
https://github.com/zedeus/nitter.git
synced 2025-01-25 00:31:11 +00:00
Fix image route order
This commit is contained in:
parent
1dab9c9c61
commit
0610f7b890
|
@ -121,16 +121,16 @@ proc createMediaRouter*(cfg: Config) =
|
|||
get "/pic/?":
|
||||
resp Http404
|
||||
|
||||
get re"^\/pic\/(enc)?\/?(.+)":
|
||||
let url = getPicUrl(request)
|
||||
cond isTwitterUrl(parseUri(url)) == true
|
||||
check await proxyMedia(request, url)
|
||||
|
||||
get re"^\/pic\/orig\/(enc)?\/?(.+)":
|
||||
let url = getPicUrl(request)
|
||||
cond isTwitterUrl(parseUri(url)) == true
|
||||
check await proxyMedia(request, url & "?name=orig")
|
||||
|
||||
get re"^\/pic\/(enc)?\/?(.+)":
|
||||
let url = getPicUrl(request)
|
||||
cond isTwitterUrl(parseUri(url)) == true
|
||||
check await proxyMedia(request, url)
|
||||
|
||||
get re"^\/video\/(enc)?\/?(.+)\/(.+)$":
|
||||
let url = decoded(request, 2)
|
||||
cond "http" in url
|
||||
|
|
Loading…
Reference in a new issue