about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorAkihiko Odaki (@fn_aki@pawoo.net) <akihiko.odaki.4i@stu.hosei.ac.jp>2017-06-04 21:59:40 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-06-04 14:59:40 +0200
commite674608d10e3c0381d2e8172580b36eb553b5279 (patch)
treefecaab9d845cb1bdf7a93520d7b22320df4ed8f5 /app
parentc7af8cbc9081f349461634db0a1d76bc689d8dd5 (diff)
A minor change for ProviderDiscovery and spec (#3543)
* Do not default the format in ProviderDiscovery

The format should be determined when discovering, as it is in the current
implementation, and it is a flaw if it is not determined.

* Spec ProviderDiscovery
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 3d0712a5c..6d48cae2f 100644
--- a/app/lib/provider_discovery.rb
+++ b/app/lib/provider_discovery.rb
@@ -31,7 +31,7 @@ class ProviderDiscovery < OEmbed::ProviderDiscovery
         raise OEmbed::NotFound, url
       end
 
-      OEmbed::Provider.new(provider_endpoint, format || OEmbed::Formatter.default)
+      OEmbed::Provider.new(provider_endpoint, format)
     end
   end
 end