Fix nest of source property for Post

This commit is contained in:
Kitaiti Makoto 2022-05-03 10:47:21 +09:00
parent 1e0d1fb97a
commit 1f62bf27f8
1 changed files with 2 additions and 4 deletions

View File

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