about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>2017-12-27 11:29:49 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-12-27 03:29:49 +0100
commite0ef7f9d79ce0bd8307e6bf77a4dd77d83214809 (patch)
tree492349e5cd9fc7bfe452e0363650762ea12ef6eb /app
parent127bfda521d97fd173acf3c4fdcedcb065f7eefb (diff)
Fix XML oEmbed support discovery (#6104)
Diffstat (limited to 'app')
-rw-r--r--app/lib/provider_discovery.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/provider_discovery.rb b/app/lib/provider_discovery.rb
index 04ba38101..5732e4fcb 100644
--- a/app/lib/provider_discovery.rb
+++ b/app/lib/provider_discovery.rb
@@ -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