From 7b4f5d3ac15f0cfd3ed3278925af7d2497228706 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Tue, 19 Dec 2017 13:54:07 +1100 Subject: [PATCH] Unwrap 'html' content passed to micropub --- micropub/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/micropub/views.py b/micropub/views.py index 5541e30..21d23e8 100644 --- a/micropub/views.py +++ b/micropub/views.py @@ -60,7 +60,10 @@ class MicropubView(View): entry.name = '\n'.join(props['name']) kind = Article if 'content' in props: - entry.content = '\n'.join(props['content']) + entry.content = '\n'.join( + c if isinstance(c, str) else c['html'] + for c in props['content'] + ) if 'in-reply-to' in props: entry.in_reply_to = props['in-reply-to'] kind = Reply