diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-02-03 14:07:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-03 14:07:29 +0100 |
commit | d1ecc323e7d435d0ffb11056a53b52d3345868f0 (patch) | |
tree | 0f4365ed24dc3638f52a385adee5280ec91d94dd /app/services | |
parent | d0d15bf49c52c8329e3333397a9fc5d22341673a (diff) |
Compact JSON-LD signed incoming activities (#17426)
Co-authored-by: Puck Meerburg <puck@puck.moe>
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/activitypub/process_collection_service.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/activitypub/process_collection_service.rb b/app/services/activitypub/process_collection_service.rb index 170e6709c..5f3d63bb3 100644 --- a/app/services/activitypub/process_collection_service.rb +++ b/app/services/activitypub/process_collection_service.rb @@ -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'] |