mirror of
https://github.com/zedeus/nitter
synced 2026-09-06 07:09:31 +00:00
parent
989b1f5f64
commit
7f6c083dce
6 changed files with 135 additions and 26 deletions
|
|
@ -66,9 +66,13 @@ proc createStatusRouter*(cfg: Config) =
|
|||
elif card.video.isSome():
|
||||
images = @[card.video.get().thumb]
|
||||
|
||||
let
|
||||
tweetUrl = getUrlPrefix(cfg) & "/" & conv.tweet.user.username & "/status/" & $conv.tweet.id
|
||||
oembedUrl = getUrlPrefix(cfg) & "/api/oembed?url=" & encodeUrl(tweetUrl)
|
||||
|
||||
let html = renderConversation(conv, prefs, getPath() & "#m", sort)
|
||||
resp renderMain(html, request, cfg, prefs, title, desc, ogTitle,
|
||||
images=images, video=video)
|
||||
images=images, video=video, oembed=oembedUrl)
|
||||
|
||||
get "/@name/status/@id/history/?":
|
||||
cond '.' notin @"name"
|
||||
|
|
|
|||
Loading…
Reference in a new issue