Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add digest to deliver.rb #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jakekara
Copy link

@jakekara jakekara commented Nov 13, 2022

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

@janbruns
Copy link

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.

@avinassh
Copy link

+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.

@relsqui
Copy link

relsqui commented Mar 8, 2023

This also addresses mastodon/documentation#1079

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants