Compact JSON-LD signed incoming activities (#17426)
Co-authored-by: Puck Meerburg <puck@puck.moe>
This commit is contained in:
parent
d0d15bf49c
commit
d1ecc323e7
4 changed files with 66 additions and 49 deletions
|
@ -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']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue