mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-14 07:51:01 +00:00
Fix SourceProperty property
This commit is contained in:
parent
7cf7700ef7
commit
53512a6167
1 changed files with 4 additions and 2 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue