Adding/removing "pinned statuses" to an actor
Technical Discussion
1
Posts
1
Posters
15
Views
-
Mastodon has a concept called "pinned statuses", which is a special collection attached to a Person actor.
https://docs.joinmastodon.org/spec/activitypub/#featured
It wasn't readily known how this collection is updated and federated (not without code achaeology), but claire@social.sitedethib.com recently shared some additional info :smiley:
- The actor itself will issue an
Addactivity targeting the collection with the status inobject. - This activity is sent to all followers of the actor.
- No activity is sent if the actor has no remote followers.
- A
Removeis sent when a pinned post is unpinned.
This is what the
Addlooks like:{ "@context": "https://www.w3.org/ns/activitystreams", "type": "Add", "actor": "https://example.org/users/testUser", "target": "https://example.org/users/testUser/collections/featured", "object": "https://example.org/users/testUser/statuses/115266412340579560" }The corresponding
Removeis identical except fortype, which is of course,Remove. - The actor itself will issue an