mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 14:49:32 +00:00
Respect instance proxyVideos config in video embeds
This commit is contained in:
parent
5fa4eefb9d
commit
1d61f8cf07
1 changed files with 2 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
|||
import karax/[karaxdsl, vdom]
|
||||
from jester import Request
|
||||
|
||||
import ".."/[types, formatters]
|
||||
import ".."/[types, formatters, prefs]
|
||||
import general, tweet
|
||||
|
||||
const
|
||||
|
|
@ -14,7 +14,7 @@ proc renderVideoEmbed*(tweet: Tweet; cfg: Config; req: Request): string =
|
|||
video = tweet.getVideos()[0]
|
||||
thumb = video.thumb
|
||||
vidUrl = getVideoEmbed(cfg, tweet.id)
|
||||
prefs = Prefs(hlsPlayback: true, mp4Playback: true, proxyVideos: true)
|
||||
prefs = Prefs(hlsPlayback: true, mp4Playback: true, proxyVideos: defaultPrefs.proxyVideos)
|
||||
tweetUrl = getLink(tweet)
|
||||
|
||||
let node = buildHtml(html(lang="en")):
|
||||
|
|
|
|||
Loading…
Reference in a new issue