feat: add discoverable field to ApUser — no longer hard-coded to true

This commit is contained in:
2026-05-29 01:11:55 +02:00
parent 7424d1dc54
commit 4ef1315671
3 changed files with 9 additions and 1 deletions

View File

@@ -56,6 +56,9 @@ pub struct ApUser {
/// If true, incoming Follow requests must be manually approved before the
/// actor is listed as `manuallyApprovesFollowers=true` in AP JSON.
pub manually_approves_followers: bool,
/// Whether this actor should appear in AP directory listings.
/// Serialized as `discoverable` in actor JSON. Defaults to `true`.
pub discoverable: bool,
/// AP actor type serialized in the actor JSON. Defaults to `Person`.
pub actor_type: ApActorType,
/// URL of the `featured` (pinned posts) collection. Set to expose a pinned