Look up book by remote_id when adding tag

This is what downstream expects, I think this is the right level to convert
This commit is contained in:
Joel Bradshaw 2020-07-04 16:35:24 -07:00
parent 2840b9f22a
commit 18b7835022

View file

@ -283,8 +283,9 @@ def tag(request):
# field which doesn't validate
name = request.POST.get('name')
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)