0
0
Fork 0

Catch 404 errors when downloading remote media, add screenshot to landing page

This commit is contained in:
Eugen Rochko 2016-11-01 16:58:13 +01:00
parent bab4904492
commit 57304ac375
5 changed files with 37 additions and 1 deletions

View file

@ -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