Add following as a related_name for followers.
This commit is contained in:
parent
fc1ed99efa
commit
8cbca4229f
3 changed files with 22 additions and 2 deletions
|
@ -187,7 +187,7 @@ def get_following(request, username):
|
|||
return HttpResponseBadRequest()
|
||||
|
||||
user = models.User.objects.get(localname=username)
|
||||
following = models.User.objects.filter(followers=user)
|
||||
following = user.following
|
||||
page = request.GET.get('page')
|
||||
return JsonResponse(activitypub.get_following(user, page, following))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue