Pinned Posts
k-ap serves GET /users/{id}/featured automatically as an OrderedCollection of pinned post URLs. By default the collection is empty.
Enable pinned posts
Override get_featured_objects in your ApContentReader:
Wire up the URL in ApUser
Set featured_url to the endpoint URL so it appears in actor JSON:
k-ap includes featured_url as the featured field in actor JSON. Clients like Mastodon follow this link from the actor's featured field to display pinned posts on a profile.
How it works
GET /users/{id}/featured is registered by service.router(). When a request arrives, k-ap calls ApContentReader::get_featured_objects(user_id) and returns an OrderedCollection with the returned URLs as orderedItems.
The collection is always a flat list of URLs — it does not include the full object JSON. Remote clients fetch each URL individually if they need the content.