Fixes following external fedireads user

Fixes #42
This commit is contained in:
Mouse Reeve
2020-02-19 11:33:00 -08:00
parent bf58e29a54
commit f7867da7a0
7 changed files with 29 additions and 30 deletions

View File

@ -274,11 +274,10 @@ def favorite(request, status_id):
@login_required
def follow(request):
def follow(request, username):
''' follow another user, here or abroad '''
to_follow = request.POST.get('user')
# should this be an actor rather than an id? idk
to_follow = models.User.objects.get(id=to_follow)
to_follow = models.User.objects.get(username=username)
outgoing.handle_outgoing_follow(request.user, to_follow)
user_slug = to_follow.localname if to_follow.localname \