point archive links back to archive.is - merged with i18n
This commit is contained in:
parent
79964100bb
commit
6b20a3a913
|
@ -163,8 +163,8 @@ class="story <%= story.vote && story.vote[:vote] == 1 ? "upvoted" : "" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if story.url.present? %>
|
<% if story.url.present? %>
|
||||||
|
|
|
|
||||||
<a href="https://web.archive.org/web/<%= story.url %>" rel="nofollow"
|
<a href="https://archive.is/<%= story.url %>" rel="nofollow"
|
||||||
target="_blank"><%= t('.cached') %></a>
|
target="_new"><%= t('.cached') %></a>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if !story.is_gone? %>
|
<% if !story.is_gone? %>
|
||||||
<span class="comments_label">
|
<span class="comments_label">
|
||||||
|
|
|
@ -44,7 +44,7 @@ class StoryCacher
|
||||||
begin
|
begin
|
||||||
s = Sponge.new
|
s = Sponge.new
|
||||||
s.timeout = 45
|
s.timeout = 45
|
||||||
s.fetch("https://web.archive.org/save/#{db_url}")
|
s.fetch("https://archive.is/#{db_url}")
|
||||||
rescue => e
|
rescue => e
|
||||||
Rails.logger.error "error caching #{db_url}: #{e.message}"
|
Rails.logger.error "error caching #{db_url}: #{e.message}"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue