Use pre-redirect URL for thumbnail

This commit is contained in:
Marcin Kulik 2015-03-30 16:26:22 +00:00
parent 77ea5809f5
commit 7765c157c3

View File

@ -39,7 +39,7 @@ class OembedController < ApplicationController
author_url: profile_url(asciicast.user), author_url: profile_url(asciicast.user),
provider_name: 'asciinema', provider_name: 'asciinema',
provider_url: root_url, provider_url: root_url,
thumbnail_url: asciicast.image_url, thumbnail_url: asciicast_url(asciicast, format: :png),
thumbnail_width: width, thumbnail_width: width,
thumbnail_height: height, thumbnail_height: height,
html: render_html(asciicast, width), html: render_html(asciicast, width),