fix: add indexable to Lysand user and default it to false

This commit is contained in:
aprilthepink 2024-07-16 23:22:52 +02:00
parent 474b57652b
commit d86abbb97d
2 changed files with 2 additions and 0 deletions

View file

@ -125,6 +125,7 @@ pub async fn lysand_user_from_db(
avatar: None,
header: None,
fields: None,
indexable: false,
created_at: OffsetDateTime::from_unix_timestamp(user.created_at.timestamp()).unwrap(),
public_key: PublicKey {
actor: url.clone(),

View file

@ -237,6 +237,7 @@ pub struct User {
pub avatar: Option<ContentFormat>,
pub header: Option<ContentFormat>,
pub fields: Option<Vec<FieldKV>>,
pub indexable: bool,
}
#[derive(Debug, Serialize, Deserialize, Clone)]