From 6b20a3a913c76cd08a795e6f46dad4464448fa06 Mon Sep 17 00:00:00 2001 From: Carl Chenet Date: Wed, 17 May 2017 19:21:23 +0200 Subject: [PATCH] point archive links back to archive.is - merged with i18n --- app/views/stories/_listdetail.html.erb | 4 ++-- extras/story_cacher.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/stories/_listdetail.html.erb b/app/views/stories/_listdetail.html.erb index ab95ed2..e62f0b0 100644 --- a/app/views/stories/_listdetail.html.erb +++ b/app/views/stories/_listdetail.html.erb @@ -163,8 +163,8 @@ class="story <%= story.vote && story.vote[:vote] == 1 ? "upvoted" : "" %> <% end %> <% if story.url.present? %> | - <%= t('.cached') %> + <%= t('.cached') %> <% end %> <% if !story.is_gone? %> diff --git a/extras/story_cacher.rb b/extras/story_cacher.rb index fcacb2e..a1f344e 100644 --- a/extras/story_cacher.rb +++ b/extras/story_cacher.rb @@ -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