Skip to content

Commit

Permalink
fix: add indexable to Lysand user and default it to false
Browse files Browse the repository at this point in the history
  • Loading branch information
CutestNekoAqua committed Jul 16, 2024
1 parent 474b576 commit d86abbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lysand/conversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
1 change: 1 addition & 0 deletions src/lysand/objects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit d86abbb

Please sign in to comment.