sorry, i had just updated my post at the same time as you posted to clarify mastodon’s implementation vs my general position on the spec!
Gotcha! Thanks. I should have double checked before logging off last night & saved you the trouble.
I don’t mean to continue the derail. If I can summarize, it sounds like the conclusion is that “using JSON-LD framing may cause some federation problems right now (for various software), but is a tractable problem with a solution that could be provided for the future”. Feel free to correct me.
I ran into this object id #fragment problem as well. It seems because of some URL normalization, Mastodon will remove the fragment, and drop any additional posts with different fragments (because they become the same url).
Hi there, just to let you know that the blog tutorial is now broken. The POST request also need to contain a Digest field in the header and a digest in the signed text.
See mastodon/signature_verification.rb at c3aef491d66aec743a3a53e934a494f653745b61 · mastodon/mastodon · GitHub for more information.
Hi there @green-coder, welcome to SocialHub It might be best to report that to the appropriate Mastodon issue tracker, but in any case cc’ing @Gargron and @nightpool with this…
Bug reported at Blog post "how-to-implement-a-basic-activitypub-server" misses the field `Digest` · Issue #17299 · mastodon/mastodon · GitHub
Sorry, I know this is a huge necro but I’m facing the exact same problem! I attempted to create a post using the example shown in this blogpost (with the addition of a digest), and while I can get replies to show up, if I go to the user’s timeline, it’s empty! “Posts and replies” will show the posts that had inReplyTo
set, but nothing else shows.
{
"@context": "https://www.w3.org/ns/activitystreams",
"id": "https://activitypub-sandbox.ollien.com/test-activity2",
"type": "Create",
"actor": "https://activitypub-sandbox.ollien.com/user1",
"object": {
"id": "https://activitypub-sandbox.ollien.com/test-object2",
"type": "Note",
"published": "2023-07-05T23:49:00",
"attributedTo": "https://activitypub-sandbox.ollien.com/user1",
"content": "this is a test of having things rooted here...",
"to": "https://www.w3.org/ns/activitystreams#Public"
}
}
Is there something that needs to be hosted on my test domain for Mastodon to hydrate the timeline?