logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: f095a9f8a5788aaf4205e9bdca5845a844f8c0d3
parent: 0d5d11eeff048a5022a6eef68d299856f5bb9860
Author: unarist <m.unarist@gmail.com>
Date:   Sun, 27 Aug 2017 20:35:01 +0900

Allow Symbol keyed Hash in LinkedDataSignature (#4715)

SerializarbleResource#as_json serializes to Symbol keyed Hash, but current
implementation of LinkedDataSignature expects String keyed Hash.

So it generates broken payload.

Diffstat:

Mapp/lib/activitypub/linked_data_signature.rb2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/lib/activitypub/linked_data_signature.rb b/app/lib/activitypub/linked_data_signature.rb @@ -6,7 +6,7 @@ class ActivityPub::LinkedDataSignature CONTEXT = 'https://w3id.org/identity/v1' def initialize(json) - @json = json + @json = json.with_indifferent_access end def verify_account!