merged 734e28776ga19c8ac9c7c176f857237788d33c71 with i18n

This commit is contained in:
Carl Chenet 2017-05-16 18:58:36 +02:00
parent 64c4682cc7
commit 412b93babd
2 changed files with 3 additions and 3 deletions

View file

@ -163,8 +163,8 @@ class="story <%= story.vote && story.vote[:vote] == 1 ? "upvoted" : "" %>
<% end %>
<% if story.url.present? %>
|
<a href="https://archive.is/<%= story.url %>" rel="nofollow"
target="_new"><%= t('.cached') %></a>
<a href="https://web.archive.org/web/<%= story.url %>" rel="nofollow"
target="_blank"><%= t('.cached') %></a>
<% end %>
<% if !story.is_gone? %>
<span class="comments_label">

View file

@ -44,7 +44,7 @@ class StoryCacher
begin
s = Sponge.new
s.timeout = 45
s.fetch("https://archive.is/#{db_url}")
s.fetch("https://web.archive.org/save/#{db_url}")
rescue => e
Rails.logger.error "error caching #{db_url}: #{e.message}"
end