Skip to content
Snippets Groups Projects
Unverified Commit e0eb39d4 authored by Claire's avatar Claire Committed by GitHub
Browse files

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

Fixes #19389
parent e9141843
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment