merged 734e28776ga19c8ac9c7c176f857237788d33c71 with i18n
This commit is contained in:
parent
64c4682cc7
commit
412b93babd
|
@ -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">
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue