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

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(