Compact JSON-LD signed incoming activities

This commit is contained in:
Puck Meerburg 2022-01-22 13:48:27 +00:00 committed by Claire
parent c8dbbd60eb
commit fe0210074f
4 changed files with 67 additions and 50 deletions

View file

@ -8,6 +8,8 @@ class ActivityPub::ProcessCollectionService < BaseService
@json = Oj.load(body, mode: :strict)
@options = options
@json = compact(@json) if @json['signature'].is_a?(Hash)
return if !supported_context? || (different_actor? && verify_account!.nil?) || suspended_actor? || @account.local?
case @json['type']