diff --git a/fedireads/activitypub/__init__.py b/fedireads/activitypub/__init__.py index ffe4fdb6c..ae6f788f9 100644 --- a/fedireads/activitypub/__init__.py +++ b/fedireads/activitypub/__init__.py @@ -4,4 +4,4 @@ from .collection import get_outbox, get_outbox_page, get_add, get_remove, \ get_following, get_followers from .create import get_create from .follow import get_follow_request, get_accept -from .status import get_review, get_status +from .status import get_review, get_status, get_replies diff --git a/fedireads/incoming.py b/fedireads/incoming.py index 9059f4c14..9083815a7 100644 --- a/fedireads/incoming.py +++ b/fedireads/incoming.py @@ -136,6 +136,7 @@ def get_status(request, username, status_id): @csrf_exempt def get_replies(request, username, status_id): ''' ordered collection of replies to a status ''' + # TODO: this isn't a full implmentation if request.method != 'GET': return HttpResponseBadRequest() @@ -147,7 +148,7 @@ def get_replies(request, username, status_id): reply_parent=status ).first() - replies_activity = activitypub.get_replies(status, replies) + replies_activity = activitypub.get_replies(status, [replies]) return JsonResponse(replies_activity)