Fix nest of source property for Post
This commit is contained in:
parent
1e0d1fb97a
commit
1f62bf27f8
@ -368,10 +368,8 @@ impl Post {
|
|||||||
article.set_many_attributed_tos(authors);
|
article.set_many_attributed_tos(authors);
|
||||||
article.set_content(self.content.get().clone());
|
article.set_content(self.content.get().clone());
|
||||||
let source = AnyBase::from_arbitrary_json(serde_json::json!({
|
let source = AnyBase::from_arbitrary_json(serde_json::json!({
|
||||||
"source": {
|
|
||||||
"content": self.source,
|
"content": self.source,
|
||||||
"mediaType": "text/markdown",
|
"mediaType": "text/markdown",
|
||||||
}
|
|
||||||
}))?;
|
}))?;
|
||||||
article.set_source(source);
|
article.set_source(source);
|
||||||
article.set_published(
|
article.set_published(
|
||||||
|
Loading…
Reference in New Issue
Block a user