point archive links back to archive.is - merged with i18n

This commit is contained in:
Carl Chenet 2017-05-17 19:21:23 +02:00
parent 79964100bb
commit 6b20a3a913
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://web.archive.org/web/<%= story.url %>" rel="nofollow"
target="_blank"><%= t('.cached') %></a>
<a href="https://archive.is/<%= story.url %>" rel="nofollow"
target="_new"><%= 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://web.archive.org/save/#{db_url}")
s.fetch("https://archive.is/#{db_url}")
rescue => e
Rails.logger.error "error caching #{db_url}: #{e.message}"
end