mirror of
https://github.com/versia-pub/activitypub.git
synced 2025-12-06 14:48:19 +01:00
fix: add indexable to Lysand user and default it to false
This commit is contained in:
parent
474b57652b
commit
d86abbb97d
|
|
@ -125,6 +125,7 @@ pub async fn lysand_user_from_db(
|
||||||
avatar: None,
|
avatar: None,
|
||||||
header: None,
|
header: None,
|
||||||
fields: None,
|
fields: None,
|
||||||
|
indexable: false,
|
||||||
created_at: OffsetDateTime::from_unix_timestamp(user.created_at.timestamp()).unwrap(),
|
created_at: OffsetDateTime::from_unix_timestamp(user.created_at.timestamp()).unwrap(),
|
||||||
public_key: PublicKey {
|
public_key: PublicKey {
|
||||||
actor: url.clone(),
|
actor: url.clone(),
|
||||||
|
|
|
||||||
|
|
@ -237,6 +237,7 @@ pub struct User {
|
||||||
pub avatar: Option<ContentFormat>,
|
pub avatar: Option<ContentFormat>,
|
||||||
pub header: Option<ContentFormat>,
|
pub header: Option<ContentFormat>,
|
||||||
pub fields: Option<Vec<FieldKV>>,
|
pub fields: Option<Vec<FieldKV>>,
|
||||||
|
pub indexable: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue