mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Fix Video Mode Button
The query params that get edited for `embed_params` are now deep copied instead of shallow copied, preventing the originals from being changed.
This commit is contained in:
parent
b19524d56a
commit
dfd5e30015
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ class Invidious::Routes::Watch < Invidious::Routes::BaseRoute
|
||||||
|
|
||||||
embed_link = "/embed/#{id}"
|
embed_link = "/embed/#{id}"
|
||||||
if env.params.query.size > 1
|
if env.params.query.size > 1
|
||||||
embed_params = env.params.query.dup
|
embed_params = HTTP::Params.parse(env.params.query.to_s)
|
||||||
embed_params.delete_all("v")
|
embed_params.delete_all("v")
|
||||||
embed_link += "?"
|
embed_link += "?"
|
||||||
embed_link += embed_params.to_s
|
embed_link += embed_params.to_s
|
||||||
|
|
Loading…
Reference in a new issue