From 1f62bf27f89ce8db7582e5f06fcf10b1e085d635 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Tue, 3 May 2022 10:47:21 +0900 Subject: [PATCH] Fix nest of source property for Post --- plume-models/src/posts.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plume-models/src/posts.rs b/plume-models/src/posts.rs index 00291227..9225fdc9 100644 --- a/plume-models/src/posts.rs +++ b/plume-models/src/posts.rs @@ -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(