Need help implementing ActivityPub - getting inconsistent results across platforms
-
Did something change since this was posted?
I can look it up properly on mastodon.
You have to be signed in to fetch accounts on mastodon, is that the problem?Are you using any framework to build the site? There's a few libraries for activitypub.
These links could be helpful: https://codeberg.org/fediverse/delightful-activitypub-development/Seems like somebody mentioned the account on the fediverse that started a chain reaction of various instances requesting a bunch of stuff. Which made it to Mastodon.social too. It still doesn't work though.
The server is written in python and the idea is to make it deploy-able without needing to install anything extra. So I'm trying to implement my own activity pub.
-
Did something change since this was posted?
I can look it up properly on mastodon.
You have to be signed in to fetch accounts on mastodon, is that the problem?Are you using any framework to build the site? There's a few libraries for activitypub.
These links could be helpful: https://codeberg.org/fediverse/delightful-activitypub-development/I would say for now the most issue is about acually pulling posts.
-
Seems like somebody mentioned the account on the fediverse that started a chain reaction of various instances requesting a bunch of stuff. Which made it to Mastodon.social too. It still doesn't work though.
The server is written in python and the idea is to make it deploy-able without needing to install anything extra. So I'm trying to implement my own activity pub.
Running
curl https://blenderdumbass.org/activitypub/account/blenderdumbass -H "Accept: application/activity+json"
twice in a row outputs some bunkerweb anti-spam stuff. -
Running
curl https://blenderdumbass.org/activitypub/account/blenderdumbass -H "Accept: application/activity+json"
twice in a row outputs some bunkerweb anti-spam stuff.Disabled bunker for now.
-
Seems like somebody mentioned the account on the fediverse that started a chain reaction of various instances requesting a bunch of stuff. Which made it to Mastodon.social too. It still doesn't work though.
The server is written in python and the idea is to make it deploy-able without needing to install anything extra. So I'm trying to implement my own activity pub.
It's for django, but take a look into my ActivityPub Toolkit. It is designed to be compliant with ActivityPub and not with any particular implementation, so it should be easy for you to adapt to your own needs.
-
My friend is working on adding ActivityPub support to his blog platform (BDServer) so people can follow/comment from Mastodon, Lemmy, etc.
Current status: Lemmy and Misskey can find and follow his account (@blenderdumbass@blenderdumbass.org), but Mastodon can't find it at all, even though he sees proper ActivityPub requests hitting his server.
The technical details are pretty gnarly - RSA signature verification, HTTP header recreation, multi-threading issues. He wrote up the full journey here: Please Help Me With Activity Pub
If anyone has ActivityPub experience or wants to take a look at the code (Python), we have a Matrix room for BDServer development. Any insights on why different platforms behave differently would be super helpful.
You're invited to talk on Matrix
You're invited to talk on Matrix
(matrix.to)
Source code: ActivityPub.py
Maybe this kind of discussion will get more interested people on !activitypub@programming.dev .
-
Disabled bunker for now.
Also: bunker blocks me 100% of the time on individual articles.
-
Also: bunker blocks me 100% of the time on individual articles.
Should not too I removed all blocks.
-
It's for django, but take a look into my ActivityPub Toolkit. It is designed to be compliant with ActivityPub and not with any particular implementation, so it should be easy for you to adapt to your own needs.
This doesn't have any link to code. And all the other buttons say that the docs are not implemented yet.
-
Running
curl https://blenderdumbass.org/activitypub/account/blenderdumbass -H "Accept: application/activity+json"
twice in a row outputs some bunkerweb anti-spam stuff.try spoofing a user-agent or torifying it maybe
-
This doesn't have any link to code. And all the other buttons say that the docs are not implemented yet.
The menu has a link to the repository.
-
try spoofing a user-agent or torifying it maybe
While I'm sure that would let me see the article, mastodon probably wouldn't handle it well.
-
Seems like somebody mentioned the account on the fediverse that started a chain reaction of various instances requesting a bunch of stuff. Which made it to Mastodon.social too. It still doesn't work though.
The server is written in python and the idea is to make it deploy-able without needing to install anything extra. So I'm trying to implement my own activity pub.
For what it's worth your blog does show up fine in NodeBB as well. Perhaps you are missing the
@context
property and so Mastodon is refusing to parse it?