From 53512a6167aeef8e9284e3569e68da47722d30bb Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Mon, 7 Mar 2022 00:33:59 +0900 Subject: [PATCH] Fix SourceProperty property --- plume-models/src/posts.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plume-models/src/posts.rs b/plume-models/src/posts.rs index 51f27ab4..b1e99fbd 100644 --- a/plume-models/src/posts.rs +++ b/plume-models/src/posts.rs @@ -444,8 +444,10 @@ impl Post { article.set_many_attributed_tos(authors); article.set_content(self.content.get().clone()); let source = SourceProperty { - content: self.source.clone(), - media_type: String::from("text/markdown"), + source: Source { + content: self.source.clone(), + media_type: String::from("text/markdown"), + }, }; article.set_published( OffsetDateTime::from_unix_timestamp_nanos(self.creation_date.timestamp_nanos().into())