FIX: update oEmbed URL for simplecast onebox (#13956)

This commit is contained in:
Arpit Jalan 2021-08-05 17:42:38 +05:30 committed by GitHub
parent 0c0a11b66a
commit a341dba5d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 7 deletions

View File

@ -23,13 +23,7 @@ module Onebox
private
def get_oembed_url
if id = url.scan(/([a-zA-Z0-9]*)\Z/).flatten.first
oembed_url = "https://simplecast.com/s/#{id}"
else
oembed_url = url
end
"https://simplecast.com/oembed?url=#{oembed_url}"
"https://api.simplecast.com/oembed?url=#{url}"
end
end
end