Unwrap 'html' content passed to micropub
This commit is contained in:
parent
ff96b732af
commit
7b4f5d3ac1
1 changed files with 4 additions and 1 deletions
|
@ -60,7 +60,10 @@ class MicropubView(View):
|
||||||
entry.name = '\n'.join(props['name'])
|
entry.name = '\n'.join(props['name'])
|
||||||
kind = Article
|
kind = Article
|
||||||
if 'content' in props:
|
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:
|
if 'in-reply-to' in props:
|
||||||
entry.in_reply_to = props['in-reply-to']
|
entry.in_reply_to = props['in-reply-to']
|
||||||
kind = Reply
|
kind = Reply
|
||||||
|
|
Loading…
Reference in a new issue