Browse Source

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

closed-social-glitch-2
Claire 1 year ago
committed by GitHub
parent
commit
bb89f0af8a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/services/activitypub/process_collection_service.rb

+ 1
- 1
app/services/activitypub/process_collection_service.rb View File

@ -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

Loading…
Cancel
Save