feat(presentation): followers/following list endpoints for remote actors
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user