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:
Danielle McLean 2017-11-16 21:52:42 +11:00
parent fb9e9a24c9
commit e72a6b01f0
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
7 changed files with 78 additions and 13 deletions

View file

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