Start implementing reply context! It's ugly and doesn't actually link the original post yet but you *can* see the original post's author and content :3
This commit is contained in:
parent
fb9e9a24c9
commit
e72a6b01f0
7 changed files with 78 additions and 13 deletions
|
@ -36,13 +36,13 @@ class MicropubView(View):
|
|||
if 'content' in post:
|
||||
entry.content = post['content']
|
||||
if 'in-reply-to' in post:
|
||||
entry.cite = post['in-reply-to']
|
||||
entry.in_reply_to = post['in-reply-to']
|
||||
kind = Reply
|
||||
if 'like-of' in post:
|
||||
entry.cite = post['like-of']
|
||||
entry.like_of = post['like-of']
|
||||
kind = Like
|
||||
if 'repost-of' in post:
|
||||
entry.cite = post['repost-of']
|
||||
entry.repost_of = post['repost-of']
|
||||
kind = Repost
|
||||
|
||||
entry.kind = kind.id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue