blog icon indicating copy to clipboard operation
blog copied to clipboard

add digest to deliver.rb

Open jakekara opened this issue 3 years ago • 3 comments

Hi! Not sure if this was the best way to offer an edit.

I found that when I went to do this example, it didn't work without a digest in the header list. Since I'm new to Mastodon and don't write too much Ruby, this took me a bit to figure out and thought I'd offer it up. Thanks for this awesome post! I was able to use it to learn a lot more hands-on about activity pub and Mastodon and was able to post content from my static Jekyll site as a reply. So cool!

Here's the code that I actually ran successfully and I based the edits on.

I think this would resolve #17299

jakekara avatar Nov 13 '22 23:11 jakekara

Exactly same thing here.

Also... just one step ahead of that:

The keyId received on posts to inbox needs to be translated to a public key to verify a signature. Ideally without having to have a look at the posted activity (to find out about the actor and it's pubkey, which in turn -as well as the yet still not authententicated sending server- might not already be known to the receiving server).

So my guess is the httpsigkeyId=actor.publicKey.id should be formed in a way that allows to find out the actor id. Or maybe added as webfinger resources. Currently, it looks like webfinger translates actor.id#unknownkey to actor.id.

janbruns avatar Nov 16 '22 05:11 janbruns

+1.

The tutorial is quite good, but this missing piece would complete it. I spent way too much time figuring out the basic stuff working from the blog post.

avinassh avatar Dec 10 '22 07:12 avinassh

This also addresses https://github.com/mastodon/documentation/issues/1079

relsqui avatar Mar 08 '23 07:03 relsqui