Skip to content
Snippets Groups Projects
Unverified Commit 664b0ca8 authored by Jeong Arm's avatar Jeong Arm Committed by GitHub
Browse files

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

parent bd33efdf
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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