diff options
author | unarist <m.unarist@gmail.com> | 2017-08-27 20:35:01 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-08-27 13:35:01 +0200 |
commit | f095a9f8a5788aaf4205e9bdca5845a844f8c0d3 (patch) | |
tree | 252d7c9b84c05e9f2fa62f7e0814eb6a6b6c71e2 | |
parent | 0d5d11eeff048a5022a6eef68d299856f5bb9860 (diff) |
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.
-rw-r--r-- | app/lib/activitypub/linked_data_signature.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/activitypub/linked_data_signature.rb b/app/lib/activitypub/linked_data_signature.rb index 7173aed19..4483339a9 100644 --- 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! |