Catch 404 errors when downloading remote media, add screenshot to landing page
This commit is contained in:
parent
bab4904492
commit
57304ac375
5 changed files with 37 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue