mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-26 18:10:36 +00:00
Fixes replies ap access
This commit is contained in:
parent
5a3bc37bca
commit
0447fef279
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue