Closed mattes3 closed 2 months ago
Could you show me your actor dispatcher and key pairs dispatcher? In theory, publicKey
can contain multiple items, but in practice, many implementations assume it contains only one. That's why FEP-521a was introduced.
Ah, I see! I looked at my actor dispatcher and (after comparing it to the microblog example), I found that the problem was here:
- publicKeys: (await ctx.getActorKeyPairs(handle)).map(
- (keyPair) => keyPair.cryptographicKey,
- ),
+ publicKey: (await ctx.getActorKeyPairs(handle))[0]?.cryptographicKey ?? null,
Further down, there is:
assertionMethods: (await ctx.getActorKeyPairs(handle)).map(
(pair) => pair.multikey,
),
Now it works. Thank you!
Today, I tried to follow a group on Lemmy (the handle is
typescript@programming.dev
).When my program sent the
Follow
activity via Fedify, I got this long error message:Do I understand correctly that it has something to do with the fact that Fedify uses more than one public key? I am not sure whether I really looked at column 1927 in the long line of JSON text.
If I follow the Lemmy account from Mastodon, it works O.K.
What can I do now?