Unwrap 'html' content passed to micropub

This commit is contained in:
Danielle McLean 2017-12-19 13:54:07 +11:00
parent ff96b732af
commit 7b4f5d3ac1
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5

View file

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