mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-27 02:24:03 -05:00
Fix ActivityPub::ProcessingWorker error on incoming malformed JSON-LD (#23416)
This commit is contained in:
parent
e2207af3d7
commit
bb89f0af8a
@ -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…
Reference in New Issue
Block a user