mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-10-31 04:32:02 +00:00 
			
		
		
		
	Fix 404 for annotations endpoint
This commit is contained in:
		| @@ -2921,6 +2921,11 @@ get "/api/v1/annotations/:id" do |env| | ||||
|  | ||||
|     response = HTTP::Client.get(URI.parse(location.headers["Location"])) | ||||
|  | ||||
|     if response.body.empty? | ||||
|       env.response.status_code = 404 | ||||
|       next | ||||
|     end | ||||
|  | ||||
|     if response.status_code != 200 | ||||
|       env.response.status_code = response.status_code | ||||
|       next | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Omar Roth
					Omar Roth