mirror of
https://github.com/zedeus/nitter
synced 2026-09-06 15:19:32 +00:00
Referer cleanup
This commit is contained in:
parent
1e55f21fa5
commit
7bdf5b0f76
3 changed files with 15 additions and 10 deletions
|
|
@ -58,10 +58,7 @@ proc renderVideoDisabled(video: Video; path: string): VNode =
|
|||
of mp4:
|
||||
p: text "mp4 playback disabled in preferences"
|
||||
of m3u8, vmap:
|
||||
form(`method`="post", action=("/enablehls")):
|
||||
verbatim "<input name=\"referer\" style=\"display: none\" value=\"$1\"/>" % path
|
||||
button(`type`="submit"):
|
||||
text "Enable hls playback"
|
||||
buttonReferer "/enablehls", "Enable hls playback", path
|
||||
|
||||
proc renderVideoUnavailable(video: Video): VNode =
|
||||
buildHtml(tdiv):
|
||||
|
|
|
|||
Loading…
Reference in a new issue