From 7765c157c31528258cb81101a1b5a969b068eee4 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Mon, 30 Mar 2015 16:26:22 +0000 Subject: [PATCH] Use pre-redirect URL for thumbnail --- app/controllers/oembed_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/oembed_controller.rb b/app/controllers/oembed_controller.rb index d1dbbeb..c56eb22 100644 --- a/app/controllers/oembed_controller.rb +++ b/app/controllers/oembed_controller.rb @@ -39,7 +39,7 @@ class OembedController < ApplicationController author_url: profile_url(asciicast.user), provider_name: 'asciinema', provider_url: root_url, - thumbnail_url: asciicast.image_url, + thumbnail_url: asciicast_url(asciicast, format: :png), thumbnail_width: width, thumbnail_height: height, html: render_html(asciicast, width),