This is more of a “Server to Server to Client” question, but this feels like the best place for it.
I’m trying to implement very basic ActivityPub features in my Little Library (link to activitypub
branch in GitHub) app that allows other accounts to Follow
it so they can get updates in their timeline when a book is added or removed. So far, I have succeeded in Accept
ing incoming Follow
requests and removing followers on Undo{Follow}
and Delete
activities, but I’m not sure if I’m sending my Create
activities correctly because when I send it to the follower (my Mastodon account), it does not appear to show up in my Mastodon timeline at all.
The actual process involves running through a queue of followers and sending them the activity, but here are the most relevant lines of code in GitHub:
-
createActivity method (generates the
Create{Note}
activity that is sent) -
sendActivity method (actually
POST
s the activity to the target inbox)
I’m not receiving any errors or anything after sending to my Mastodon inbox, but it’s not showing on my timeline like other messages. Am I missing something required to get it to show up in the follower’s timeline?