Fix SourceProperty property

This commit is contained in:
Kitaiti Makoto 2022-03-07 00:33:59 +09:00
parent 7cf7700ef7
commit 53512a6167

View file

@ -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())