mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-22 19:41:03 +00:00
Fix nest of source property for Post
This commit is contained in:
parent
1e0d1fb97a
commit
1f62bf27f8
1 changed files with 2 additions and 4 deletions
|
@ -368,10 +368,8 @@ impl Post {
|
|||
article.set_many_attributed_tos(authors);
|
||||
article.set_content(self.content.get().clone());
|
||||
let source = AnyBase::from_arbitrary_json(serde_json::json!({
|
||||
"source": {
|
||||
"content": self.source,
|
||||
"mediaType": "text/markdown",
|
||||
}
|
||||
"content": self.source,
|
||||
"mediaType": "text/markdown",
|
||||
}))?;
|
||||
article.set_source(source);
|
||||
article.set_published(
|
||||
|
|
Loading…
Reference in a new issue