1
0
mirror of https://github.com/zedeus/nitter.git synced 2025-12-15 08:42:48 -05:00

Proxy media instead of using file cache

This commit is contained in:
Zed
2020-06-06 04:39:22 +02:00
parent 1dcb191903
commit 68a5ac20b6
7 changed files with 80 additions and 61 deletions

View File

@@ -45,7 +45,7 @@ proc createStatusRouter*(cfg: Config) =
video = getVideoEmbed(cfg, conv.tweet.id)
elif conv.tweet.gif.isSome():
images = @[get(conv.tweet.gif).thumb]
video = getGifUrl(get(conv.tweet.gif).url)
video = getPicUrl(get(conv.tweet.gif).url)
let html = renderConversation(conv, prefs, getPath() & "#m")
resp renderMain(html, request, cfg, title, desc,