experimental fix for media stuff

This commit is contained in:
khr 2021-04-05 20:33:05 -07:00
parent 8856c046e4
commit 9c46d38db4
1 changed files with 2 additions and 1 deletions

View File

@ -253,7 +253,8 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
rescue Mastodon::UnexpectedResponseError, HTTP::TimeoutError, HTTP::ConnectionError, OpenSSL::SSL::SSLError
RedownloadMediaWorker.perform_in(rand(30..600).seconds, media_attachment.id)
rescue Seahorse::Client::NetworkingError
nil
Rails.logger.info "Ran into seahorse networking error on MEDIA:#{media_attachment.id} for STATUS:#{media_attachment.status_id}"
RedownloadMediaWorker.perform_in(rand(30..600).seconds, media_attachment.id)
end
end