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

Fix ActivityPub::ProcessingWorker error on incoming malformed JSON-LD (#23416)

parent e2207af3
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ class ActivityPub::ProcessCollectionService < BaseService
@account = ActivityPub::LinkedDataSignature.new(@json).verify_actor!
@account = nil unless @account.is_a?(Account)
@account
rescue JSON::LD::JsonLdError => e
rescue JSON::LD::JsonLdError, RDF::WriterError => e
Rails.logger.debug "Could not verify LD-Signature for #{value_or_id(@json['actor'])}: #{e.message}"
nil
end
......
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