Fix #2488 soundcloud embedding
This commit is contained in:
parent
bbfb47b6a3
commit
0e77fcb084
2 changed files with 2 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ module OEmbedHelper
|
|||
else
|
||||
end
|
||||
|
||||
return html.gsub('http', 'https').html_safe
|
||||
return html.gsub('http://', 'https://').html_safe
|
||||
end
|
||||
|
||||
def link_to_oembed_image(cache, prefix = 'thumbnail_')
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ describe OEmbedHelper do
|
|||
real_data = data['oembed_data']
|
||||
cache = OEmbedCache.new(:url => data['link_url'])
|
||||
cache.data = real_data
|
||||
formatted = o_embed_html(cache).gsub('https', 'http')
|
||||
formatted = o_embed_html(cache).gsub('https://', 'http://')
|
||||
case type
|
||||
when 'photo'
|
||||
formatted.should =~ /#{data['oembed_data']['url']}/
|
||||
|
|
|
|||
Loading…
Reference in a new issue