This commit is contained in:
Felix Ableitner 2024-11-20 12:42:59 +01:00
parent cd04e661c5
commit 675d8fad46
2 changed files with 6 additions and 0 deletions

View file

@ -669,7 +669,9 @@ pub struct BlockInstanceResponse {
pub struct AdminBlockInstanceParams {
pub instance_id: InstanceId,
pub block: bool,
#[cfg_attr(feature = "full", ts(optional))]
pub reason: Option<String>,
#[cfg_attr(feature = "full", ts(optional))]
pub expires: Option<DateTime<Utc>>,
}

View file

@ -24,7 +24,9 @@ use {
pub struct FederationBlockList {
pub instance_id: InstanceId,
pub published: DateTime<Utc>,
#[cfg_attr(feature = "full", ts(optional))]
pub updated: Option<DateTime<Utc>>,
#[cfg_attr(feature = "full", ts(optional))]
pub block_expires: Option<DateTime<Utc>>,
}
@ -54,7 +56,9 @@ pub struct AdminBlockInstance {
pub id: i32,
pub instance_id: InstanceId,
pub admin_person_id: PersonId,
#[cfg_attr(feature = "full", ts(optional))]
pub reason: Option<String>,
#[cfg_attr(feature = "full", ts(optional))]
pub expires: Option<DateTime<Utc>>,
pub published: DateTime<Utc>,
}