1
0
mirror of https://github.com/zedeus/nitter synced 2024-11-22 01:45:22 +01:00

made twitter embed links redirect to nitter ones

This commit is contained in:
Mitarashi 2022-01-14 20:24:06 +02:00
parent a6bd05bca6
commit ac0edc0a41

View File

@ -27,3 +27,11 @@ proc createEmbedRouter*(cfg: Config) =
resp Http404
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