Merge pull request #189 from cincodenada/fix/tagging-remote-id

Look up book by remote_id when adding tag
This commit is contained in:
Mouse Reeve 2020-07-04 16:47:50 -07:00 committed by GitHub
commit a6593eced7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -283,8 +283,9 @@ def tag(request):
# field which doesn't validate # field which doesn't validate
name = request.POST.get('name') name = request.POST.get('name')
book_id = request.POST.get('book') book_id = request.POST.get('book')
remote_id = 'https://%s/book/%s' % (DOMAIN, book_id)
outgoing.handle_tag(request.user, book_id, name) outgoing.handle_tag(request.user, remote_id, name)
return redirect('/book/%s' % book_id) return redirect('/book/%s' % book_id)