mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-10-31 04:32:02 +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:
		| @@ -30,7 +30,7 @@ class Invidious::Routes::Watch < Invidious::Routes::BaseRoute | ||||
|  | ||||
|     embed_link = "/embed/#{id}" | ||||
|     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_link += "?" | ||||
|       embed_link += embed_params.to_s | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 saltycrys
					saltycrys