small fixes for replies

This commit is contained in:
Mouse Reeve 2020-02-17 21:42:09 -08:00
parent 9194b3c50d
commit 0d4f6851b9
2 changed files with 2 additions and 3 deletions

View file

@ -13,7 +13,7 @@ def get_status(status):
''' create activitypub json for a status '''
user = status.user
uri = status.absolute_id
reply_parent_id = status.reply_parent.id if status.reply_parent else None
reply_parent_id = status.reply_parent.absolute_id if status.reply_parent else None
status_json = {
'id': uri,
'url': uri,

View file

@ -155,13 +155,12 @@ def get_replies(request, username, status_id):
'type': 'CollectionPage',
'next': '%s?only_other_accounts=true&page=true' % path_id,
'partOf': path_id,
'items': [replies.activity]
'items': [activitypub.get_status(replies)]
}
}
return JsonResponse(replies_activity)
@csrf_exempt
def get_followers(request, username):
''' return a list of followers for an actor '''