From 57304ac375e905fb0efa1b98a6100828bdbef2e1 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Tue, 1 Nov 2016 16:58:13 +0100 Subject: Catch 404 errors when downloading remote media, add screenshot to landing page --- app/models/account.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/models/account.rb') diff --git a/app/models/account.rb b/app/models/account.rb index 8542852bc..0a6ba182b 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -112,6 +112,8 @@ class Account < ApplicationRecord def avatar_remote_url=(url) self.avatar = URI.parse(url) unless self[:avatar_remote_url] == url self[:avatar_remote_url] = url + rescue OpenURI::HTTPError + # end def object_type -- cgit