Fix XML oEmbed support discovery (#6104)
This commit is contained in:
		
				
					committed by
					
						
						Eugen Rochko
					
				
			
			
				
	
			
			
			
						parent
						
							127bfda521
						
					
				
				
					commit
					e0ef7f9d79
				
			@@ -29,7 +29,7 @@ class ProviderDiscovery < OEmbed::ProviderDiscovery
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
      if format.nil? || format == :xml
 | 
			
		||||
        provider_endpoint ||= html.at_xpath('//link[@type="application/xml+oembed"]')&.attribute('href')&.value
 | 
			
		||||
        provider_endpoint ||= html.at_xpath('//link[@type="text/xml+oembed"]')&.attribute('href')&.value
 | 
			
		||||
        format ||= :xml if provider_endpoint
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user