Fix bookmark import stopping at the first failure (#19669)

Fixes #19389
th-downstream
Claire 2 years ago committed by GitHub
parent 6d0c85d6a8
commit 208ae8a4e0

@ -112,6 +112,11 @@ class ImportService < BaseService
next if status.nil? && ActivityPub::TagManager.instance.local_uri?(uri)
status || ActivityPub::FetchRemoteStatusService.new.call(uri)
rescue HTTP::Error, OpenSSL::SSL::SSLError, Mastodon::UnexpectedResponseError
nil
rescue StandardError => e
Rails.logger.warn "Unexpected error when importing bookmark: #{e}"
nil
end
account_ids = statuses.map(&:account_id)

Loading…
Cancel
Save