diff --git a/fedireads/activitypub/status.py b/fedireads/activitypub/status.py index 2e214e7cb..58168a055 100644 --- a/fedireads/activitypub/status.py +++ b/fedireads/activitypub/status.py @@ -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, diff --git a/fedireads/incoming.py b/fedireads/incoming.py index 579e0d3ba..348d62db0 100644 --- a/fedireads/incoming.py +++ b/fedireads/incoming.py @@ -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 '''