about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2023-02-06 21:00:58 +0100
committerGitHub <noreply@github.com>2023-02-06 21:00:58 +0100
commitbb89f0af8a54abe4ae790f11b6f7c03a00158cfc (patch)
tree3970117160a971415c893d206ad338d77e98135f /app/services
parente2207af3d7ca9d00896bd7e3d1eceda138e39135 (diff)
Fix ActivityPub::ProcessingWorker error on incoming malformed JSON-LD (#23416)
Diffstat (limited to 'app/services')
-rw-r--r--app/services/activitypub/process_collection_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/activitypub/process_collection_service.rb b/app/services/activitypub/process_collection_service.rb
index fffe30195..8218b8a12 100644
--- a/app/services/activitypub/process_collection_service.rb
+++ b/app/services/activitypub/process_collection_service.rb
@@ -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