Check if json body is null on Activitipub::ProcessingWorker (#26021)

local
Jeong Arm 10 months ago committed by GitHub
parent bd33efdf16
commit 664b0ca8cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/services/activitypub/process_collection_service.rb

@ -8,6 +8,8 @@ class ActivityPub::ProcessCollectionService < BaseService
@json = original_json = Oj.load(body, mode: :strict)
@options = options
return unless @json.is_a?(Hash)
begin
@json = compact(@json) if @json['signature'].is_a?(Hash)
rescue JSON::LD::JsonLdError => e

Loading…
Cancel
Save