objects::person::ApubPerson,
protocol::{objects::Endpoints, ImageObject, Source},
};
+use activitypub_federation::{
+ core::{object_id::ObjectId, signatures::PublicKey},
+ deser::helpers::deserialize_skip_error,
+};
use chrono::{DateTime, FixedOffset};
-use lemmy_apub_lib::{object_id::ObjectId, signatures::PublicKey};
use serde::{Deserialize, Serialize};
use serde_with::skip_serializing_none;
use url::Url;
-#[derive(Clone, Copy, Debug, Deserialize, Serialize, PartialEq)]
+#[derive(Clone, Copy, Debug, Deserialize, Serialize, PartialEq, Eq)]
pub enum UserTypes {
Person,
Service,
+ Organization,
}
#[skip_serializing_none]
/// displayname
pub(crate) name: Option<String>,
pub(crate) summary: Option<String>,
+ #[serde(deserialize_with = "deserialize_skip_error", default)]
pub(crate) source: Option<Source>,
/// user avatar
pub(crate) icon: Option<ImageObject>,