pub actor_id: DbUrl,
pub local: bool,
pub private_key: Option<String>,
- pub public_key: Option<String>,
+ pub public_key: String,
pub last_refreshed_at: chrono::NaiveDateTime,
pub icon: Option<DbUrl>,
pub banner: Option<DbUrl>,
pub followers_url: DbUrl,
pub inbox_url: DbUrl,
pub shared_inbox_url: Option<DbUrl>,
+ pub hidden: bool,
}
/// A safe representation of community, without the sensitive info
pub local: bool,
pub icon: Option<DbUrl>,
pub banner: Option<DbUrl>,
+ pub hidden: bool,
}
#[derive(Insertable, AsChangeset, Debug, Default)]
pub nsfw: Option<bool>,
pub actor_id: Option<DbUrl>,
pub local: Option<bool>,
- pub private_key: Option<String>,
- pub public_key: Option<String>,
+ pub private_key: Option<Option<String>>,
+ pub public_key: String,
pub last_refreshed_at: Option<chrono::NaiveDateTime>,
pub icon: Option<Option<DbUrl>>,
pub banner: Option<Option<DbUrl>>,
pub followers_url: Option<DbUrl>,
pub inbox_url: Option<DbUrl>,
pub shared_inbox_url: Option<Option<DbUrl>>,
+ pub hidden: Option<bool>,
}
#[derive(Identifiable, Queryable, Associations, PartialEq, Debug)]
pub community_id: CommunityId,
pub person_id: PersonId,
pub published: chrono::NaiveDateTime,
+ pub expires: Option<chrono::NaiveDateTime>,
}
#[derive(Insertable, AsChangeset, Clone)]
pub struct CommunityPersonBanForm {
pub community_id: CommunityId,
pub person_id: PersonId,
+ pub expires: Option<Option<chrono::NaiveDateTime>>,
}
#[derive(Identifiable, Queryable, Associations, PartialEq, Debug)]