feat(presentation): remote actor posts endpoint + extended RemoteActorResponse

This commit is contained in:
2026-05-14 22:19:23 +02:00
parent 00b369c6ad
commit f3c3637ade
6 changed files with 165 additions and 2 deletions

View File

@@ -88,6 +88,13 @@ pub struct CreatedApiKeyResponse {
pub key: String,
}
#[derive(Serialize, Clone, utoipa::ToSchema)]
#[serde(rename_all = "camelCase")]
pub struct ProfileField {
pub name: String,
pub value: String,
}
#[derive(Serialize, utoipa::ToSchema)]
#[serde(rename_all = "camelCase")]
pub struct RemoteActorResponse {
@@ -95,4 +102,9 @@ pub struct RemoteActorResponse {
pub display_name: Option<String>,
pub avatar_url: Option<String>,
pub url: String,
pub bio: Option<String>,
pub banner_url: Option<String>,
pub also_known_as: Option<String>,
pub outbox_url: Option<String>,
pub attachment: Vec<ProfileField>,
}