use crate::{
objects::{person::ApubPerson, private_message::ApubPrivateMessage},
- protocol::SourceCompat,
+ protocol::Source,
};
use chrono::{DateTime, FixedOffset};
use lemmy_apub_lib::{object_id::ObjectId, values::MediaTypeHtml};
pub(crate) content: String,
pub(crate) media_type: Option<MediaTypeHtml>,
- pub(crate) source: Option<SourceCompat>,
+ #[serde(default)]
+ #[serde(deserialize_with = "crate::deserialize_skip_error")]
+ pub(crate) source: Option<Source>,
pub(crate) published: Option<DateTime<FixedOffset>>,
pub(crate) updated: Option<DateTime<FixedOffset>>,
}