mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-14 03:56:29 +00:00
made twitter embed links redirect to nitter ones
This commit is contained in:
parent
a6bd05bca6
commit
ac0edc0a41
1 changed files with 8 additions and 0 deletions
|
@ -27,3 +27,11 @@ proc createEmbedRouter*(cfg: Config) =
|
||||||
resp Http404
|
resp Http404
|
||||||
|
|
||||||
resp $renderEmbeddedTweet(convo.tweet, cfg, request, prefs, path)
|
resp $renderEmbeddedTweet(convo.tweet, cfg, request, prefs, path)
|
||||||
|
|
||||||
|
get "/embed/Tweet.html":
|
||||||
|
let id = @"id"
|
||||||
|
|
||||||
|
if id.len > 0:
|
||||||
|
redirect("/i/status/" & id & "/embed")
|
||||||
|
else:
|
||||||
|
resp Http404
|
||||||
|
|
Loading…
Reference in a new issue