gearheads
/
mastodon
Archived
2
0
Fork 0

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.
gh/stable
unarist 2017-08-27 20:35:01 +09:00 committed by Eugen Rochko
parent 0d5d11eeff
commit f095a9f8a5
1 changed files with 1 additions and 1 deletions

View File

@ -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!