Skip to content

Commit

Permalink
thumbnails using https
Browse files Browse the repository at this point in the history
  • Loading branch information
siglun committed Apr 30, 2019
1 parent 47b898a commit 58869a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def get_lang params

def show_scaled_image(doc, opts)
uri = doc['thumbnail_url_ssm'].first
uri = uri.gsub(/(https?:\/\/)(.*)$/,"https://\\2")
if uri[/ull\/[^\/]*?/]
uri = uri.gsub(/full\/[^\/]*?\//,'full/!225,/')
end
Expand Down

0 comments on commit 58869a2

Please sign in to comment.