feat(presentation): followers/following list endpoints for remote actors

This commit is contained in:
2026-05-15 00:48:42 +02:00
parent 38a13ad641
commit c536cc2cd4
8 changed files with 118 additions and 2 deletions

View File

@@ -110,3 +110,20 @@ pub struct RemoteActorResponse {
pub following_url: Option<String>,
pub attachment: Vec<ProfileField>,
}
#[derive(Serialize, utoipa::ToSchema)]
#[serde(rename_all = "camelCase")]
pub struct ActorConnectionResponse {
pub handle: String,
pub display_name: Option<String>,
pub avatar_url: Option<String>,
pub url: String,
}
#[derive(Serialize, utoipa::ToSchema)]
#[serde(rename_all = "camelCase")]
pub struct ActorConnectionPageResponse {
pub items: Vec<ActorConnectionResponse>,
pub page: u32,
pub has_more: bool,
}